aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-24 13:09:26 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-24 13:09:26 +0900
commit92fb46fb505d1e094811038d0abbe33805d52f33 (patch)
tree3029ea7603cb26b8643797061185aa8a972f550e /src/bin/edje
parentedje_cc out: fix div by 0 correctly (diff)
downloadefl-92fb46fb505d1e094811038d0abbe33805d52f33.tar.gz
edje convert - make realloc fatal and complain about it
cleaner error handling
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_convert.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/edje/edje_convert.c b/src/bin/edje/edje_convert.c
index 1a304a138d..eb113a7fee 100644
--- a/src/bin/edje/edje_convert.c
+++ b/src/bin/edje/edje_convert.c
@@ -192,7 +192,11 @@ _edje_collection_program_add(Edje_Program ***array,
Edje_Program **tmp;
tmp = realloc(*array, sizeof (Edje_Program*) * (*count + 1));
- if (!tmp) return;
+ if (!tmp)
+ {
+ error_and_abort(ef, "Not enough memory");
+ return;
+ }
tmp[(*count)++] = add;
*array = tmp;