diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-06-14 16:24:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-06-14 16:24:18 +0000 |
commit | 98bea86787275725dd85ea3efa889650f0b41c87 (patch) | |
tree | 4fff197baa1cfa28508c749e8bcb12c96ab94d7d | |
parent | db42cb7f0b926817aff8c41cac4ad993a3db85aa (diff) | |
download | mandoc-98bea86787275725dd85ea3efa889650f0b41c87.tar.gz mandoc-98bea86787275725dd85ea3efa889650f0b41c87.tar.zst mandoc-98bea86787275725dd85ea3efa889650f0b41c87.zip |
Fix a regression in rev. 1.319 (2019/03/03):
Pass the right object to html_reset() or it will crash
when rendering more than one manual page to HTML in a row.
Bug reported by Abel Romero Perez <romeroperezabel at gmail dot com>.
Patch from otto@.
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.348 2020/04/02 22:12:55 schwarze Exp $ */ +/* $Id: main.c,v 1.349 2020/06/14 16:24:18 schwarze Exp $ */ /* * Copyright (c) 2010-2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> @@ -896,7 +896,7 @@ parse(struct mparse *mp, int fd, const char *file, if (outst->outdata == NULL) outdata_alloc(outst, outconf); else if (outst->outtype == OUTT_HTML) - html_reset(outst); + html_reset(outst->outdata); mandoc_xr_reset(); meta = mparse_result(mp); |