aboutsummaryrefslogtreecommitdiffstats
path: root/pattern.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-03-09 14:13:55 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-03-09 14:13:55 +0000
commit30e7607b7a346695691cd819361b3c11e8d11d00 (patch)
tree47ea2b445c24e5d60abce2db9b0f2e789639d600 /pattern.c
parent53cd4a1b4ef8be397548470fd0c3075c8d67c25c (diff)
downloadandroid_external_libxml2-30e7607b7a346695691cd819361b3c11e8d11d00.tar.gz
android_external_libxml2-30e7607b7a346695691cd819361b3c11e8d11d00.tar.bz2
android_external_libxml2-30e7607b7a346695691cd819361b3c11e8d11d00.zip
a bunch of small cleanups based on coverity reports. Daniel
* HTMLparser.c parser.c parserInternals.c pattern.c uri.c: a bunch of small cleanups based on coverity reports. Daniel
Diffstat (limited to 'pattern.c')
-rw-r--r--pattern.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/pattern.c b/pattern.c
index 7b3e5082..75935f0f 100644
--- a/pattern.c
+++ b/pattern.c
@@ -624,8 +624,6 @@ restart:
goto rollback;
node = node->parent;
while (node != NULL) {
- if (node == NULL)
- goto rollback;
if ((node->type == XML_ELEMENT_NODE) &&
(step->value[0] == node->name[0]) &&
(xmlStrEqual(step->value, node->name))) {
@@ -1183,10 +1181,6 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
NEXT;
PUSH(XML_OP_ALL, token, NULL);
} else {
- if (name == NULL) {
- ctxt->error = 1;
- goto error;
- }
PUSH(XML_OP_ELEM, name, NULL);
}
return;