From 983d03d012a93811672daa6392e48da9f24b5c53 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Wed, 26 Feb 2020 10:38:54 +0100 Subject: [PATCH] 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 Differential Revision: https://phab.enlightenment.org/D11420 --- src/bin/exactness/exactness.c | 4 +++- src/bin/exactness/injector.c | 3 ++- src/bin/exactness/player.c | 3 ++- src/bin/exactness/recorder.c | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/bin/exactness/exactness.c b/src/bin/exactness/exactness.c index 3c429d65d6..637d60cf8b 100644 --- a/src/bin/exactness/exactness.c +++ b/src/bin/exactness/exactness.c @@ -489,7 +489,9 @@ main(int argc, char *argv[]) ECORE_GETOPT_VALUE_NONE }; - ecore_evas_init(); + if (!ecore_evas_init()) + return EXIT_FAILURE; + _dest_dir = "./"; _scan_objs = scan_objs; diff --git a/src/bin/exactness/injector.c b/src/bin/exactness/injector.c index 68bc4b0b60..d2b29d014b 100644 --- a/src/bin/exactness/injector.c +++ b/src/bin/exactness/injector.c @@ -440,7 +440,8 @@ int main(int argc, char **argv) ECORE_GETOPT_VALUE_NONE }; - ecore_evas_init(); + if (!ecore_evas_init()) + return EXIT_FAILURE; opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); if (opt_args < 0) diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c index 0e88914406..a8a2a73461 100644 --- a/src/bin/exactness/player.c +++ b/src/bin/exactness/player.c @@ -1129,7 +1129,8 @@ int main(int argc, char **argv) ECORE_GETOPT_VALUE_NONE }; - ecore_evas_init(); + if (!ecore_evas_init()) + return EXIT_FAILURE; opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); if (opt_args < 0) diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c index c3f1ced58b..7ca7a4c976 100644 --- a/src/bin/exactness/recorder.c +++ b/src/bin/exactness/recorder.c @@ -394,7 +394,8 @@ int main(int argc, char **argv) ECORE_GETOPT_VALUE_NONE }; - ecore_evas_init(); + if (!ecore_evas_init()) + return EXIT_FAILURE; opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); if (opt_args < 0)