]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Fri, 15 Apr 2016 23:51:57 +0000 (19:51 -0400)
committerCristy <urban-warrior@imagemagick.org>
Fri, 15 Apr 2016 23:51:57 +0000 (19:51 -0400)
coders/xpm.c

index 15334ae6879e546145740165dc86a7a2315e1d42..cb278fc4a90cc7c41daa3db755f06b6c3a4ef072 100644 (file)
@@ -343,8 +343,7 @@ static Image *ReadXPMImage(const ImageInfo *image_info,ExceptionInfo *exception)
     Remove unquoted characters.
   */
   active=MagickFalse;
-  q=xpm_buffer;
-  while (*p != '\0')
+  while (q=xpm_buffer; *p != '\0'; )
   {
     if (*p++ == '"')
       {