From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 40ed3e9c for ; Tue, 9 Apr 2019 07:24:04 -0500 (EST) Date: Tue, 9 Apr 2019 07:24:04 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: docbook2mdoc: Fix a logic bug and a memory leak: After parsing an X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- Fix a logic bug and a memory leak: After parsing an attribute value, clear the attribute flag, such that, if another attribute value follows, it gets ignored rather than clobbering the first value. Modified Files: -------------- docbook2mdoc: parse.c Revision Data ------------- Index: parse.c =================================================================== RCS file: /home/cvs/mdocml/docbook2mdoc/parse.c,v retrieving revision 1.26 retrieving revision 1.27 diff -Lparse.c -Lparse.c -u -p -r1.26 -r1.27 --- parse.c +++ parse.c @@ -631,6 +631,7 @@ xml_attrval(struct parse *ps, const char perror(NULL); exit(1); } + ps->flags &= ~PFLAG_ATTR; } /* -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv