[libxml2] Remove Unnecessary Null check in xpointer.c
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Remove Unnecessary Null check in xpointer.c
- Date: Tue, 7 Oct 2014 08:43:11 +0000 (UTC)
commit a61929e8cafcf42b407ae507ff185dee05d9e070
Author: Gaurav Gupta <g gupta samsung com>
Date: Tue Oct 7 12:28:34 2014 +0800
Remove Unnecessary Null check in xpointer.c
For https://bugzilla.gnome.org/show_bug.cgi?id=738052
superfluous check
xpointer.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/xpointer.c b/xpointer.c
index 46f11e8..6c8516f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]