]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 6 Sep 2011 14:47:06 +0000 (14:47 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 6 Sep 2011 14:47:06 +0000 (14:47 +0000)
MagickCore/xml-tree.c

index 14492efa2d89bd4fce9ff548463d0d2061b12dba..5351a963e808206fbc9c07eb64d8a743d10b245c 100644 (file)
@@ -1768,8 +1768,9 @@ MagickExport XMLTreeInfo *NewXMLTree(const char *xml,ExceptionInfo *exception)
   {
     attributes=(char **) sentinel;
     tag=p;
+    c=(*p);
     if ((isalpha((int) ((unsigned char) *p)) !=0) || (*p == '_') ||
-        (*p == ':') || (((int) *p) < '\0'))
+        (*p == ':') || (c < '\0'))
       {
         /*
           Tag.