fixed bug #366161, trivially added the check in xmlCtxtReset() Daniel
* parser.c: fixed bug #366161, trivially added the check in
xmlCtxtReset()
Daniel
svn path=/trunk/; revision=3626
diff --git a/ChangeLog b/ChangeLog
index 69963fc..993934c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jun 12 10:16:48 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+ * parser.c: fixed bug #366161, trivially added the check in
+ xmlCtxtReset()
+
Fri Jun 8 21:48:21 CEST 2007 Rob Richards <rrichards@ctindustries.net>
* win32/configure.js win32/Makefile.msvc: add --vcmanifest flag (yes/no)
diff --git a/parser.c b/parser.c
index 817d8d8..f99dafe 100644
--- a/parser.c
+++ b/parser.c
@@ -12954,8 +12954,12 @@
ctxt->input = NULL;
ctxt->spaceNr = 0;
- ctxt->spaceTab[0] = -1;
- ctxt->space = &ctxt->spaceTab[0];
+ if (ctxt->spaceTab != NULL) {
+ ctxt->spaceTab[0] = -1;
+ ctxt->space = &ctxt->spaceTab[0];
+ } else {
+ ctxt->space = NULL;
+ }
ctxt->nodeNr = 0;