Commit 8dd86a5b authored by Daniel Veillard's avatar Daniel Veillard
Browse files

strengthen the guard in the Pop macros, like in the XML parser, closes bug

* HTMLparser.c: strengthen the guard in the Pop macros,
  like in the XML parser, closes bug #97315
Daniel
parent 0821b158
Tue Nov 12 22:06:45 CET 2002 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: strengthen the guard in the Pop macros,
like in the XML parser, closes bug #97315
Tue Nov 12 21:56:39 CET 2002 Daniel Veillard <daniel@veillard.com>
* include/libxml/parser.h: fixed bug #98338 , fatalError SAX
......
......@@ -84,7 +84,7 @@ scope int html##name##Push(htmlParserCtxtPtr ctxt, type value) { \
} \
scope type html##name##Pop(htmlParserCtxtPtr ctxt) { \
type ret; \
if (ctxt->name##Nr < 0) return(0); \
if (ctxt->name##Nr <= 0) return(0); \
ctxt->name##Nr--; \
if (ctxt->name##Nr < 0) return(0); \
if (ctxt->name##Nr > 0) \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment