summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-02-26 10:38:54 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2020-02-26 15:15:48 +0100
commit983d03d012a93811672daa6392e48da9f24b5c53 (patch)
tree0d9d54086924b4476881e3ef955a501e948f8058 /src/bin
parentde389fbe5e5f4f46808dabd92ca291e1a41077cd (diff)
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
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/exactness/exactness.c4
-rw-r--r--src/bin/exactness/injector.c3
-rw-r--r--src/bin/exactness/player.c3
-rw-r--r--src/bin/exactness/recorder.c3
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[])
489 ECORE_GETOPT_VALUE_NONE 489 ECORE_GETOPT_VALUE_NONE
490 }; 490 };
491 491
492 ecore_evas_init(); 492 if (!ecore_evas_init())
493 return EXIT_FAILURE;
494
493 _dest_dir = "./"; 495 _dest_dir = "./";
494 _scan_objs = scan_objs; 496 _scan_objs = scan_objs;
495 497
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)
440 ECORE_GETOPT_VALUE_NONE 440 ECORE_GETOPT_VALUE_NONE
441 }; 441 };
442 442
443 ecore_evas_init(); 443 if (!ecore_evas_init())
444 return EXIT_FAILURE;
444 445
445 opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); 446 opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
446 if (opt_args < 0) 447 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)
1129 ECORE_GETOPT_VALUE_NONE 1129 ECORE_GETOPT_VALUE_NONE
1130 }; 1130 };
1131 1131
1132 ecore_evas_init(); 1132 if (!ecore_evas_init())
1133 return EXIT_FAILURE;
1133 1134
1134 opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); 1135 opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
1135 if (opt_args < 0) 1136 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)
394 ECORE_GETOPT_VALUE_NONE 394 ECORE_GETOPT_VALUE_NONE
395 }; 395 };
396 396
397 ecore_evas_init(); 397 if (!ecore_evas_init())
398 return EXIT_FAILURE;
398 399
399 opt_args = ecore_getopt_parse(&optdesc, values, argc, argv); 400 opt_args = ecore_getopt_parse(&optdesc, values, argc, argv);
400 if (opt_args < 0) 401 if (opt_args < 0)