Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common
Modified Files:
evas_image_main.c
Log Message:
initialize that memory block before reading from it
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_image_main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- evas_image_main.c 22 Jun 2003 02:33:25 -0000 1.7
+++ evas_image_main.c 14 Jan 2004 18:11:03 -0000 1.8
@@ -76,7 +76,7 @@
void
evas_common_image_surface_alloc(RGBA_Surface *is)
{
- is->data = malloc(is->w * is->h * sizeof(DATA32));
+ is->data = calloc(1, is->w * is->h * sizeof(DATA32));
}
void
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs