adjusted last change to xmlCompilePathPattern, fixed one compilation
* pattern.c: adjusted last change to xmlCompilePathPattern,
fixed one compilation warning
diff --git a/pattern.c b/pattern.c
index 292a2ca..2438099 100644
--- a/pattern.c
+++ b/pattern.c
@@ -1132,7 +1132,7 @@
static void
xmlCompilePathPattern(xmlPatParserContextPtr ctxt) {
SKIP_BLANKS;
- if ((CUR == '/') && (NXT(1) != '/')) {
+ if (CUR == '/') {
ctxt->comp->flags |= PAT_FROM_ROOT;
} else if ((CUR == '.') || (ctxt->comp->flags & XML_PATTERN_NOTPATTERN)) {
ctxt->comp->flags |= PAT_FROM_CUR;
@@ -1584,7 +1584,7 @@
xmlStreamPushInternal(xmlStreamCtxtPtr stream,
const xmlChar *name, const xmlChar *ns,
xmlElementType nodeType) {
- int ret = 0, err = 0, tmp, i, m, match, step, desc, final;
+ int ret = 0, err = 0, final = 0, tmp, i, m, match, step, desc;
xmlStreamCompPtr comp;
#ifdef DEBUG_STREAMING
xmlStreamCtxtPtr orig = stream;