From: Enlightenment S. <no-...@en...> - 2010-02-01 17:26:33
|
Log: Fix init checks so that there is no more seg fault. All that stuff should be cleaned, though. Author: caro Date: 2010-02-01 09:26:25 -0800 (Mon, 01 Feb 2010) New Revision: 45780 Modified: trunk/edje/src/bin/edje_cc.c trunk/edje/src/bin/edje_decc.c Modified: trunk/edje/src/bin/edje_cc.c =================================================================== --- trunk/edje/src/bin/edje_cc.c 2010-02-01 17:07:42 UTC (rev 45779) +++ trunk/edje/src/bin/edje_cc.c 2010-02-01 17:26:25 UTC (rev 45780) @@ -196,7 +196,8 @@ exit(-1); } - edje_init(); + if (!edje_init()) + exit(-1); edje_file = mem_alloc(SZ(Edje_File)); edje_file->compiler = strdup("edje_cc"); Modified: trunk/edje/src/bin/edje_decc.c =================================================================== --- trunk/edje/src/bin/edje_decc.c 2010-02-01 17:07:42 UTC (rev 45779) +++ trunk/edje/src/bin/edje_decc.c 2010-02-01 17:26:25 UTC (rev 45780) @@ -58,7 +58,8 @@ int i; setlocale(LC_NUMERIC, "C"); - eina_init(); + if (!eina_init()) + exit(-1); _edje_cc_log_dom = eina_log_domain_register("edje_decc", EDJE_CC_DEFAULT_LOG_COLOR); if(_edje_cc_log_dom < 0) { @@ -89,15 +90,15 @@ exit(-1); } - edje_init(); - eet_init(); + if (!edje_init()) + exit(-1); source_edd(); if (!decomp()) return -1; output(); eet_close(ef); - eet_shutdown(); + edje_shutdown(); eina_log_domain_unregister(_edje_cc_log_dom); _edje_cc_log_dom = -1; eina_shutdown(); |