diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-03 10:05:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-03 10:05:37 +0000 |
commit | 30823ed848f6fdfe70dedc3207ffad3e075dc51a (patch) | |
tree | a3a06a380381d763d757bd566cef61d9d9728b07 /read.c | |
parent | 7b602cf91c4da49b12d6eea1b45ac5fdfec6d095 (diff) | |
download | mandoc-30823ed848f6fdfe70dedc3207ffad3e075dc51a.tar.gz |
Allow mparse_result() pointers to be NULL.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -709,8 +709,10 @@ void mparse_result(struct mparse *curp, struct mdoc **mdoc, struct man **man) { - *mdoc = curp->mdoc; - *man = curp->man; + if (mdoc) + *mdoc = curp->mdoc; + if (man) + *man = curp->man; } void |