Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/lib Modified Files: edje_var.c Log Message: get rid of 0 byte alloc =================================================================== RCS file: /cvs/e/e17/libs/edje/src/lib/edje_var.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- edje_var.c 8 Sep 2007 18:31:56 -0000 1.21 +++ edje_var.c 3 May 2008 05:33:26 -0000 1.22 @@ -170,7 +170,8 @@ embryo_program_vm_push(ed->collection->script); ed->var_pool->size = embryo_program_variable_count_get(ed->collection->script); embryo_program_vm_pop(ed->collection->script); - ed->var_pool->vars = calloc(1, sizeof(Edje_Var) * ed->var_pool->size); + if (ed->var_pool->size > 0) + ed->var_pool->vars = calloc(1, sizeof(Edje_Var) * ed->var_pool->size); } void ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs