From 98bea86787275725dd85ea3efa889650f0b41c87 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 14 Jun 2020 16:24:18 +0000 Subject: 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 . Patch from otto@. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 06045b19..63c94bdb 100644 --- a/main.c +++ b/main.c @@ -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 * Copyright (c) 2008-2012 Kristaps Dzonsons @@ -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); -- cgit v1.2.3-56-ge451