W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Bug: FreePrintBuf doesn't null values

From: Stefan Olson <Stefan@olsonsoft.co.nz>
Date: Tue, 28 Mar 2000 21:15:53 -0500 (EST)
Message-ID: <419B430C7192D311914A0000B4B6995004896C@SERVER>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>
I'm not sure if this is what is intended, but FreePrintBuf() should have
these two lines added:
// clear the buffer values so they can be used again
linebuf = NULL ;
lbufsize = 0 ;

this will then allow tidy to be called again and again within other code if
it isn't run directly from a command prompt and the code is integrated into
a larger application.

Received on Tuesday, 28 March 2000 21:40:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC