Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/estyle
Dir : e17/libs/estyle/src
Modified Files:
estyle_style.c
Log Message:
Avoid a possible unitialized variable.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/estyle/src/estyle_style.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- estyle_style.c 28 Feb 2004 06:22:39 -0000 1.15
+++ estyle_style.c 11 Mar 2004 00:18:51 -0000 1.16
@@ -729,9 +729,8 @@
* Read in each layer
*/
for (i = 0; i < layers; i++) {
- layer =
- (Estyle_Style_Layer *)
- malloc(sizeof(Estyle_Style_Layer));
+ layer = (Estyle_Style_Layer *)calloc(sizeof(Estyle_Style_Layer),
+ 1);
sprintf(key, "/layers/%d/stack", i);
e_db_int_get(info->style_db, key, &layer->stack);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs