mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Fix for #254
This commit is contained in:
		
							parent
							
								
									2e4b0903e3
								
							
						
					
					
						commit
						dcd40ce5b5
					
				|  | @ -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