Skip to content

Commit

Permalink
Merge pull request #348 from nikmolnar/master
Browse files Browse the repository at this point in the history
Fix for #254
  • Loading branch information
aclark4life committed Sep 30, 2013
2 parents bf73eae + dcd40ce commit a0eaf06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libImaging/Storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@


#include "Imaging.h"
#include <string.h>


int ImagingNewCount = 0;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a0eaf06

Please sign in to comment.