1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

Remove Unnecessary Null check in xpointer.c

For https://bugzilla.gnome.org/show_bug.cgi?id=738052

superfluous check
This commit is contained in:
Gaurav Gupta 2014-10-07 12:28:34 +08:00 committed by Daniel Veillard
parent 7e9bbdf82f
commit a61929e8ca

View File

@ -2461,8 +2461,6 @@ xmlXPtrMatchString(const xmlChar *string, xmlNodePtr start, int startindex,
((*end)->type == XML_NAMESPACE_DECL) || (endindex == NULL))
return(-1);
cur = start;
if (cur == NULL)
return(-1);
pos = startindex - 1;
stringlen = xmlStrlen(string);