summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-12-05 17:00:56 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-12-05 17:07:39 +0100
commit74914c05159742d9228ecda2228726e341cf8ac6 (patch)
tree20c3ff3e85c43ed0cab16af9d2f3544229363aa2
parent6f847f1f55820498d2a309524e3af0cc6bedc73f (diff)
downloadefl-74914c05159742d9228ecda2228726e341cf8ac6.tar.gz
elm: config: check return value of eina_value_get instead of returning always TRUE
There is always a chance that eina_value_get will not return EINA_TRUE here so better check it and use it as return value directly. CID: 1357138
-rw-r--r--src/lib/elementary/elm_config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index bd496eeeaf..0af9d58b90 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -4348,8 +4348,7 @@ _eina_value_to_int(const Eina_Value *val, int *i)
if (eina_value_type_get(val) == EINA_VALUE_TYPE_INT)
{
- eina_value_get(val, i);
- return EINA_TRUE;
+ return eina_value_get(val, i);
}
ival = eina_value_new(EINA_VALUE_TYPE_INT);