]> granicus.if.org Git - imagemagick/commitdiff
Fixed incorrect array creation reported in #149.
authorDirk Lemstra <dirk@git.imagemagick.org>
Thu, 21 Sep 2017 11:39:00 +0000 (13:39 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Thu, 21 Sep 2017 11:39:16 +0000 (13:39 +0200)
coders/json.c

index 32eb991c367e00cec128d38b162b7df2735fc5da..84313198e4dbbcc0ed4d88c5c383f6c0badf60de 100644 (file)
@@ -1610,7 +1610,8 @@ static MagickBooleanType WriteJSONImage(const ImageInfo *image_info,
   scene=0;
   do
   {
-    WriteBlobString(image,"[");
+    if (scene == 0)
+      WriteBlobString(image,"[");
     image->magick_columns=image->columns;
     image->magick_rows=image->rows;
     EncodeImageAttributes(image,file,exception);