]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 25 May 2014 23:30:09 +0000 (23:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 25 May 2014 23:30:09 +0000 (23:30 +0000)
coders/jpeg.c

index 6e85aa76bc170161e3197fbc1aef839a175d71b5..27b1955cf5014c3b176e79d40d8bf1025d95b194 100644 (file)
@@ -1971,7 +1971,8 @@ static void WriteProfile(j_compress_ptr jpeg_info,Image *image)
         xmp_profile=StringToStringInfo("http://ns.adobe.com/xap/1.0/ ");
         if (xmp_profile != (StringInfo *) NULL)
           {
-            ConcatenateStringInfo(xmp_profile,profile);
+            if (profile != (StringInfo *) NULL)
+              ConcatenateStringInfo(xmp_profile,profile);
             GetStringInfoDatum(xmp_profile)[28]='\0';
             for (i=0; i < (ssize_t) GetStringInfoLength(xmp_profile); i+=65533L)
             {