From c08a0aa01dbc34053b9642eabe8e9bc7c59e9cdd Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 25 May 2014 23:30:09 +0000 Subject: [PATCH] --- coders/jpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.40.0