edje_cc:
exit properly if eina_init() fails (like if a mempool is not found), instead of a seg fault. SVN revision: 45759
This commit is contained in:
parent
36ef85219e
commit
b3a68cc3f7
|
@ -62,12 +62,14 @@ main(int argc, char **argv)
|
|||
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
eina_init();
|
||||
if (!eina_init())
|
||||
return -1;
|
||||
|
||||
_edje_cc_log_dom = eina_log_domain_register("EDJE_CC", EDJE_DEFAULT_LOG_COLOR);
|
||||
if(_edje_cc_log_dom<0)
|
||||
{
|
||||
EINA_LOG_ERR("Enable to create a log domain.");
|
||||
exit(1);
|
||||
exit(-1);
|
||||
}
|
||||
tmp_dir = getenv("TMPDIR");
|
||||
|
||||
|
|
Loading…
Reference in New Issue