diff -Naur a/xmlregexp.c b/xmlregexp.c
--- a/xmlregexp.c	2014-05-09 10:19:51.000000000 +0530
+++ b/xmlregexp.c	2014-05-09 11:54:47.000000000 +0530
@@ -5709,8 +5709,6 @@
     if (atom == NULL)
         return(NULL);
     atom->data = data;
-    if (atom == NULL)
-	return(NULL);
     atom->valuep = xmlStrdup(token);
 
     if (xmlFAGenerateTransitions(am, from, to, atom) < 0) {
