fix a memory related segfault on a pattern compilation error #110189
authorDaniel Veillard <veillard@src.gnome.org>
Tue, 22 Apr 2003 14:14:49 +0000 (14:14 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Tue, 22 Apr 2003 14:14:49 +0000 (14:14 +0000)
* libxslt/pattern.c: fix a memory related segfault on a
  pattern compilation error #110189
Daniel

ChangeLog
libxslt/pattern.c

index 0c5d6c0..d2ec68c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Apr 22 16:01:25 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/pattern.c: fix a memory related segfault on a
+         pattern compilation error #110189
+
 Tue Apr 22 15:45:25 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/variables.c: fixing bug #110020 on global parameter
index b0283e6..6d63a15 100644 (file)
@@ -1536,7 +1536,7 @@ parse_predicate:
            xsltTransformError(NULL, NULL, NULL,
                    "xsltCompileStepPattern : ']' expected\n");
            ctxt->error = 1;
-           goto error;
+           return;
         }
        ret = xmlStrndup(q, CUR_PTR - q);
        PUSH(XSLT_OP_PREDICATE, ret, NULL);