[Pkg-e-commits] [SCM] Enlightenment DR17 graphical layout and animation library branch, upstream-vcs, updated. f5b4e4555670cc3b4a24802eb44d7d47c379bee4

raster raster at alioth.debian.org
Fri May 23 22:08:40 UTC 2008


The following commit has been merged in the upstream-vcs branch:
commit 6bb923ece67f70d0f4752b4d396d2e93019abb5c
Author: raster <raster>
Date:   Sat May 3 05:33:26 2008 +0000

    get rid of 0 byte alloc

diff --git a/src/lib/edje_var.c b/src/lib/edje_var.c
index 604b90a..50da9bf 100644
--- a/src/lib/edje_var.c
+++ b/src/lib/edje_var.c
@@ -170,7 +170,8 @@ _edje_var_init(Edje *ed)
    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

-- 
Enlightenment DR17 graphical layout and animation library



More information about the Pkg-e-commits mailing list