=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_html.c,v retrieving revision 1.87 retrieving revision 1.88 diff -c -r1.87 -r1.88 *** src/usr.bin/mandoc/man_html.c 2017/03/15 11:29:50 1.87 --- src/usr.bin/mandoc/man_html.c 2017/03/17 12:06:02 1.88 *************** *** 1,4 **** ! /* $OpenBSD: man_html.c,v 1.87 2017/03/15 11:29:50 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: man_html.c,v 1.88 2017/03/17 12:06:02 schwarze Exp $ */ /* * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze *************** *** 438,444 **** if (n->type == 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); } return 1; --- 438,445 ---- if (n->type == 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); } return 1; *************** *** 507,513 **** if (n->type == ROFFT_HEAD) { 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; --- 508,515 ---- if (n->type == ROFFT_HEAD) { 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;