diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-11 21:34:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-11 21:34:04 +0000 |
commit | 3d97d37305b411720b2b70499319dbae11c86f7c (patch) | |
tree | 50b4e7331a44842b3f3435345cbc49e0118daa27 | |
parent | 0ff863842ee7d3511d2cc8fbf907f6cf10b5b12b (diff) | |
download | mandoc-3d97d37305b411720b2b70499319dbae11c86f7c.tar.gz |
oops, don't crash when .Fo has no argument
-rw-r--r-- | mdoc_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 89978898..10a628df 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1030,7 +1030,7 @@ post_fo(POST_ARGS) hwarn_eq1(mdoc); bwarn_ge1(mdoc); - if (mdoc->last->type == MDOC_HEAD) + if (mdoc->last->type == MDOC_HEAD && mdoc->last->nchild) post_fname(mdoc); return(1); } |