summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2021-02-25 09:27:15 -0500
committerChristopher Michael <devilhorns@comcast.net>2021-02-25 09:27:15 -0500
commit359435bed97c06f4a3b7b3fe29cc3f2b1a0a8d43 (patch)
tree2e64523f1323acca30b1d90f279206fd09c3cd36 /src/lib
parent0df61dc4fda991a2b64c57a6c7825f76d6a887ba (diff)
eina_promise: Fix unchecked return value
Small patch to check return value of eina_value_get reported by Coverity Fixes CID1400993
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eina/eina_promise.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index 735c793373..4fe51206e4 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -1468,7 +1468,9 @@ _eina_future_cb_ignore_error(void *data, const Eina_Value value,
1468 if (value.type == EINA_VALUE_TYPE_ERROR) 1468 if (value.type == EINA_VALUE_TYPE_ERROR)
1469 { 1469 {
1470 Eina_Error err; 1470 Eina_Error err;
1471 eina_value_get(&value, &err); 1471
1472 if (!eina_value_get(&value, &err))
1473 return EINA_VALUE_EMPTY;
1472 if ((!expected_err) || (expected_err == err)) 1474 if ((!expected_err) || (expected_err == err))
1473 { 1475 {
1474 DBG("ignored error %d (%s)", err, eina_error_msg_get(err)); 1476 DBG("ignored error %d (%s)", err, eina_error_msg_get(err));