Merge branch 'master' of github.com:python-imaging/Pillow

This commit is contained in:
Alex Clark 2013-09-30 05:43:46 -04:00
commit ddfc37618d

View File

@ -36,6 +36,7 @@
#include "Imaging.h" #include "Imaging.h"
#include <string.h>
int ImagingNewCount = 0; int ImagingNewCount = 0;
@ -333,6 +334,7 @@ ImagingNewBlock(const char *mode, int xsize, int ysize)
im->block = (char *) malloc(bytes); im->block = (char *) malloc(bytes);
if (im->block) { if (im->block) {
memset(im->block, 0, bytes);
for (y = i = 0; y < im->ysize; y++) { for (y = i = 0; y < im->ysize; y++) {
im->image[y] = im->block + i; im->image[y] = im->block + i;