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:
Vincent Torri 2010-01-31 19:43:53 +00:00
parent 36ef85219e
commit b3a68cc3f7
1 changed files with 4 additions and 2 deletions

View File

@ -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");