]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 1 May 2014 00:52:50 +0000 (00:52 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 1 May 2014 00:52:50 +0000 (00:52 +0000)
MagickCore/xml-tree.c

index 21bb0ae0db0782d690f933db21cf8648ecb94ca2..c514880cf810ea55e3c96006fdc821b67eb9abd5 100644 (file)
@@ -1796,6 +1796,7 @@ static MagickBooleanType ParseInternalDoctype(XMLTreeRoot *root,char *xml,
             *xml='\0';
             i=0;
             while ((root->attributes[i] != (char **) NULL) &&
+                   (n != (char *) NULL) &&
                    (strcmp(n,root->attributes[i][0]) != 0))
               i++;
             while ((*(n=xml+strspn(xml+1,XMLWhitespace)+1) != '\0') &&