diff options
-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 |