From a61929e8cafcf42b407ae507ff185dee05d9e070 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Tue, 7 Oct 2014 12:28:34 +0800 Subject: [PATCH] Remove Unnecessary Null check in xpointer.c For https://bugzilla.gnome.org/show_bug.cgi?id=738052 superfluous check --- xpointer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xpointer.c b/xpointer.c index 46f11e8d..6c8516fc 100644 --- a/xpointer.c +++ b/xpointer.c @@ -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);