From: cristy Date: Sun, 25 May 2014 23:30:09 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c08a0aa01dbc34053b9642eabe8e9bc7c59e9cdd;p=imagemagick --- diff --git a/coders/jpeg.c b/coders/jpeg.c index 6e85aa76b..27b1955cf 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -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) {