aboutsummaryrefslogtreecommitdiffstats
path: root/xmlregexp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-01-02 10:22:02 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-01-02 10:22:02 +0000
commitd0271473abc7ca82a22e9a953ec525a6f4b504d5 (patch)
tree785cd20218a104e0466a701b37230994b64eb7e4 /xmlregexp.c
parent0b1ff14bd0c7c50f8cdce96478615570e1435c4f (diff)
downloadandroid_external_libxml2-d0271473abc7ca82a22e9a953ec525a6f4b504d5.tar.gz
android_external_libxml2-d0271473abc7ca82a22e9a953ec525a6f4b504d5.tar.bz2
android_external_libxml2-d0271473abc7ca82a22e9a953ec525a6f4b504d5.zip
compilation and doc build fixes from Michael Day Daniel
* xmlreader.c include/libxml/xmlreader.h xmlschemas.c: compilation and doc build fixes from Michael Day Daniel
Diffstat (limited to 'xmlregexp.c')
-rw-r--r--xmlregexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlregexp.c b/xmlregexp.c
index 55b09544..de581f0b 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -5119,11 +5119,11 @@ xmlNewAutomata(void) {
/* initialize the parser */
ctxt->end = NULL;
ctxt->start = ctxt->state = xmlRegNewState(ctxt);
- ctxt->start->type = XML_REGEXP_START_STATE;
if (ctxt->start == NULL) {
xmlFreeAutomata(ctxt);
return(NULL);
}
+ ctxt->start->type = XML_REGEXP_START_STATE;
if (xmlRegStatePush(ctxt, ctxt->start) < 0) {
xmlRegFreeState(ctxt->start);
xmlFreeAutomata(ctxt);