mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge branch 'master' of github.com:python-imaging/Pillow
This commit is contained in:
commit
ddfc37618d
|
@ -36,6 +36,7 @@
|
|||
|
||||
|
||||
#include "Imaging.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user