=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_html.c,v retrieving revision 1.152 retrieving revision 1.153 diff -c -r1.152 -r1.153 *** src/usr.bin/mandoc/mdoc_html.c 2017/03/15 11:29:50 1.152 --- src/usr.bin/mandoc/mdoc_html.c 2017/03/17 12:06:02 1.153 *************** *** 1,4 **** ! /* $OpenBSD: mdoc_html.c,v 1.152 2017/03/15 11:29:50 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: mdoc_html.c,v 1.153 2017/03/17 12:06:02 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze *************** *** 499,505 **** case ROFFT_HEAD: id = html_make_id(n); print_otag(h, TAG_H1, "cTi", "Sh", id); ! print_otag(h, TAG_A, "chR", "selflink", id); free(id); break; case ROFFT_BODY: --- 499,506 ---- case ROFFT_HEAD: id = html_make_id(n); print_otag(h, TAG_H1, "cTi", "Sh", id); ! if (id != NULL) ! print_otag(h, TAG_A, "chR", "selflink", id); free(id); break; case ROFFT_BODY: *************** *** 522,528 **** id = html_make_id(n); print_otag(h, TAG_H2, "cTi", "Ss", id); ! print_otag(h, TAG_A, "chR", "selflink", id); free(id); return 1; } --- 523,530 ---- id = html_make_id(n); print_otag(h, TAG_H2, "cTi", "Ss", id); ! if (id != NULL) ! print_otag(h, TAG_A, "chR", "selflink", id); free(id); return 1; }