GNOME Bugzilla – Bug 738052
Remove Unnecessary Null check in xpointer.c
Last modified: 2014-10-07 09:04:11 UTC
Created attachment 287900 [details] [review] Remove Unnecessary Null check in xpointer.c In function: xmlXPtrMatchString 2456 if (string == NULL) 2457 return(-1); 2458 if ((start == NULL) || (start->type == XML_NAMESPACE_DECL)) 2459 return(-1); 2460 if ((end == NULL) || (*end == NULL) || 2461 ((*end)->type == XML_NAMESPACE_DECL) || (endindex == NULL)) 2462 return(-1); 2463 cur = start; In above code, start already checked against NULL and assign to cur. So no need to add Null check again on cur. Please apply the patch.
Okay, applied and pushed to git upstream, thanks ! Daniel