diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-11 16:36:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-11 16:36:19 +0000 |
commit | 3be1a948007b770862e4e6b4bd927cc241a0d209 (patch) | |
tree | bfcd7af16fe4cd6f691358fac9358fc136ea3671 /man_html.c | |
parent | 3b8011820928761c446895df4343ab1f0287aaf3 (diff) | |
download | mandoc-3be1a948007b770862e4e6b4bd927cc241a0d209.tar.gz |
do not access a NULL pointer when formatting a completely empty document
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ html_man(void *arg, const struct roff_meta *man) if ((h->oflags & HTML_FRAGMENT) == 0) { print_gen_decls(h); print_otag(h, TAG_HTML, ""); - if (n->type == ROFFT_COMMENT) + if (n != NULL && n->type == ROFFT_COMMENT) print_gen_comment(h, n); t = print_otag(h, TAG_HEAD, ""); print_man_head(man, h); |