diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2006-03-09 14:13:55 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2006-03-09 14:13:55 +0000 |
commit | 30e7607b7a346695691cd819361b3c11e8d11d00 (patch) | |
tree | 47ea2b445c24e5d60abce2db9b0f2e789639d600 /pattern.c | |
parent | 53cd4a1b4ef8be397548470fd0c3075c8d67c25c (diff) | |
download | android_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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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; |