projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cee857
)
elm_slider: Add return value check
author
JunsuChoi
<jsuya.choi@samsung.com>
Wed, 26 Feb 2020 07:35:28 +0000
(16:35 +0900)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Tue, 3 Mar 2020 21:15:12 +0000
(06:15 +0900)
Summary:
Calling eina_value_get() without checking return value.
CID: 1400991
Test Plan: N/A
Reviewers: YOhoho, Hermet, Jaehyun_Cho, CHAN
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D11416
src/lib/elementary/elm_slider.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_slider.c
b/src/lib/elementary/elm_slider.c
index
6fc7750
..
3a8a03a
100644
(file)
--- a/
src/lib/elementary/elm_slider.c
+++ b/
src/lib/elementary/elm_slider.c
@@
-1470,7
+1470,7
@@
_indi_default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value)
if (type != EINA_VALUE_TYPE_DOUBLE) return EINA_FALSE;
-
eina_value_get(&value, &v)
;
+
if (!eina_value_get(&value, &v)) return EINA_FALSE
;
eina_strbuf_append_printf(str, sd->indi_template, v);
return EINA_TRUE;