summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2021-02-25 09:40:29 -0500
committerChristopher Michael <devilhorns@comcast.net>2021-02-25 09:40:29 -0500
commit369f2b3d87677ac076627a44c1e0e0c14c56d467 (patch)
tree58e4cb8eb53e420d97f9656d141c230ecf5355c4 /src
parent3e5629f12554d517a9c2b94450350d2a729292ae (diff)
efl_loop: Fix unchecked return value
Small patch to check return value of eina_value_get reported by Coverity Fixes CID1400919
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/efl_loop.c6
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)
140 140
141 eina_value_setup(&v, EINA_VALUE_TYPE_INT); 141 eina_value_setup(&v, EINA_VALUE_TYPE_INT);
142 if (!eina_value_convert(value, &v)) r = -1; 142 if (!eina_value_convert(value, &v)) r = -1;
143 else eina_value_get(&v, &r); 143 else
144 {
145 if (!eina_value_get(&v, &r))
146 r = -1;
147 }
144 } 148 }
145 else 149 else
146 { 150 {