forked from enlightenment/efl
exactness: check return code from ecore_evas_init
Check if we can initialize correctly and return failure if not. CID: 1419872, 1419864, 1419867, 1419850 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11420
This commit is contained in:
parent
de389fbe5e
commit
983d03d012
|
@ -489,7 +489,9 @@ main(int argc, char *argv[])
|
||||||
ECORE_GETOPT_VALUE_NONE
|
ECORE_GETOPT_VALUE_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
ecore_evas_init();
|
if (!ecore_evas_init())
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
_dest_dir = "./";
|
_dest_dir = "./";
|
||||||
_scan_objs = scan_objs;
|
_scan_objs = scan_objs;
|
||||||
|
|
||||||
|
|
|
@ -440,7 +440,8 @@ int main(int argc, char **argv)
|
||||||
ECORE_GETOPT_VALUE_NONE
|
ECORE_GETOPT_VALUE_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
ecore_evas_init();
|
if (!ecore_evas_init())
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
|
opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
|
||||||
if (opt_args < 0)
|
if (opt_args < 0)
|
||||||
|
|
|
@ -1129,7 +1129,8 @@ int main(int argc, char **argv)
|
||||||
ECORE_GETOPT_VALUE_NONE
|
ECORE_GETOPT_VALUE_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
ecore_evas_init();
|
if (!ecore_evas_init())
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
|
opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
|
||||||
if (opt_args < 0)
|
if (opt_args < 0)
|
||||||
|
|
|
@ -394,7 +394,8 @@ int main(int argc, char **argv)
|
||||||
ECORE_GETOPT_VALUE_NONE
|
ECORE_GETOPT_VALUE_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
ecore_evas_init();
|
if (!ecore_evas_init())
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
|
opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
|
||||||
if (opt_args < 0)
|
if (opt_args < 0)
|
||||||
|
|
Loading…
Reference in New Issue