diff options
author | Christopher Michael <devilhorns@comcast.net> | 2021-02-25 09:40:29 -0500 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2021-02-25 09:40:29 -0500 |
commit | 369f2b3d87677ac076627a44c1e0e0c14c56d467 (patch) | |
tree | 58e4cb8eb53e420d97f9656d141c230ecf5355c4 | |
parent | 3e5629f12554d517a9c2b94450350d2a729292ae (diff) | |
download | efl-369f2b3d87677ac076627a44c1e0e0c14c56d467.tar.gz |
efl_loop: Fix unchecked return value
Small patch to check return value of eina_value_get reported by Coverity
Fixes CID1400919
-rw-r--r-- | src/lib/ecore/efl_loop.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c index 726a4b36a0..d85d5b1661 100644 --- a/src/lib/ecore/efl_loop.c +++ b/src/lib/ecore/efl_loop.c @@ -140,7 +140,11 @@ efl_loop_exit_code_process(Eina_Value *value) eina_value_setup(&v, EINA_VALUE_TYPE_INT); if (!eina_value_convert(value, &v)) r = -1; - else eina_value_get(&v, &r); + else + { + if (!eina_value_get(&v, &r)) + r = -1; + } } else { |