]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 9 Nov 2013 02:34:16 +0000 (02:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 9 Nov 2013 02:34:16 +0000 (02:34 +0000)
MagickCore/string.c

index 7c07e79e23b1da6c3c46ef0c0fcd629a05b96674..bfbbd09251034fa71ffa8b0ac48ef3181273b3cc 100644 (file)
@@ -2303,8 +2303,11 @@ MagickExport double *StringToArrayOfDoubles(const char *string,ssize_t *count,
   *count=i;
   array=(double *) AcquireQuantumMemory((size_t) i,sizeof(*array));
   if (array == (double *) NULL)
-    (void) ThrowMagickException(exception,GetMagickModule(),ResourceLimitError,
-      "MemoryAllocationFailed","`%s'","");
+    {
+      (void) ThrowMagickException(exception,GetMagickModule(),
+        ResourceLimitError,"MemoryAllocationFailed","`%s'","");
+      return((double *) NULL);
+    }
   /*
     Fill in the floating point values.
   */