diff options
author | Christopher Michael <devilhorns@comcast.net> | 2021-02-25 09:11:17 -0500 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2021-02-25 09:11:17 -0500 |
commit | 598b7a1be6f6e42b217c423c6dcdad8132a1a941 (patch) | |
tree | 8a6a09ed66dfe0f3d07b84be537150ab353854cf /src/lib | |
parent | d70f9484c6e6e9a5034adb350d78f761481cb3b0 (diff) |
elm_slider: Fix unchecked return value
Small patch to check the return value of eina_value_get reported by
Coverity
Fixes CID1401061
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/elementary/elm_slider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c index 6604c4c2fb..8d6f9871ec 100644 --- a/src/lib/elementary/elm_slider.c +++ b/src/lib/elementary/elm_slider.c | |||
@@ -1571,7 +1571,9 @@ _format_legacy_to_format_eo_cb(void *data, Eina_Strbuf *str, const Eina_Value va | |||
1571 | const Eina_Value_Type *type = eina_value_type_get(&value); | 1571 | const Eina_Value_Type *type = eina_value_type_get(&value); |
1572 | 1572 | ||
1573 | if (type == EINA_VALUE_TYPE_DOUBLE) | 1573 | if (type == EINA_VALUE_TYPE_DOUBLE) |
1574 | eina_value_get(&value, &val); | 1574 | { |
1575 | if (!eina_value_get(&value, &val)) return EINA_FALSE; | ||
1576 | } | ||
1575 | 1577 | ||
1576 | if (sfwd->format_cb) | 1578 | if (sfwd->format_cb) |
1577 | buf = sfwd->format_cb(val); | 1579 | buf = sfwd->format_cb(val); |