aboutsummaryrefslogtreecommitdiffstats
path: root/xmlregexp.c
diff options
context:
space:
mode:
authorGaurav <g.gupta@samsung.com>2014-05-09 16:52:32 +0800
committerDaniel Veillard <veillard@redhat.com>2014-05-09 16:52:32 +0800
commit41b0d1c4e53dcec2a0206df4bedaad0f81234319 (patch)
treea2f31d5bf19b664e9c4514cf7190fa9604e0c62b /xmlregexp.c
parent9cd1c3cfbd32655d60572c0a413e017260c854df (diff)
downloadandroid_external_libxml2-41b0d1c4e53dcec2a0206df4bedaad0f81234319.tar.gz
android_external_libxml2-41b0d1c4e53dcec2a0206df4bedaad0f81234319.tar.bz2
android_external_libxml2-41b0d1c4e53dcec2a0206df4bedaad0f81234319.zip
Avoid Double Null Check
Cleanup For https://bugzilla.gnome.org/show_bug.cgi?id=729851
Diffstat (limited to 'xmlregexp.c')
-rw-r--r--xmlregexp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xmlregexp.c b/xmlregexp.c
index 8e63d74a..3e912ab9 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -5709,8 +5709,6 @@ xmlAutomataNewTransition(xmlAutomataPtr am, xmlAutomataStatePtr from,
if (atom == NULL)
return(NULL);
atom->data = data;
- if (atom == NULL)
- return(NULL);
atom->valuep = xmlStrdup(token);
if (xmlFAGenerateTransitions(am, from, to, atom) < 0) {