1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

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
This commit is contained in:
Daniel Veillard
2002-11-12 21:14:17 +00:00
parent 0821b1584b
commit 8dd86a5b61
2 changed files with 6 additions and 1 deletions

View File

@ -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) \