From: cristy Date: Sat, 9 Nov 2013 02:34:16 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70ca022b682f119009b341432aecd7a1662138af;p=imagemagick --- diff --git a/MagickCore/string.c b/MagickCore/string.c index 7c07e79e2..bfbbd0925 100644 --- a/MagickCore/string.c +++ b/MagickCore/string.c @@ -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. */