From dcd40ce5b5c0f862a8961875c3c8c49311395a13 Mon Sep 17 00:00:00 2001 From: Nikolas Stevenson-Molnar Date: Mon, 30 Sep 2013 01:04:58 -0700 Subject: [PATCH] Fix for #254 --- libImaging/Storage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libImaging/Storage.c b/libImaging/Storage.c index 7f2a455fa3e..eb3be432289 100644 --- a/libImaging/Storage.c +++ b/libImaging/Storage.c @@ -36,6 +36,7 @@ #include "Imaging.h" +#include int ImagingNewCount = 0; @@ -333,6 +334,7 @@ ImagingNewBlock(const char *mode, int xsize, int ysize) im->block = (char *) malloc(bytes); if (im->block) { + memset(im->block, 0, bytes); for (y = i = 0; y < im->ysize; y++) { im->image[y] = im->block + i;