ami pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=20a0d8c26eac9ceaa594e384885cf2df7d347e17
commit 20a0d8c26eac9ceaa594e384885cf2df7d347e17 Author: Amitesh Singh <amitesh...@samsung.com> Date: Tue Nov 14 10:30:55 2017 +0900 test calendar: make format callback function better Add comments too. --- src/bin/elementary/test_calendar.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/bin/elementary/test_calendar.c b/src/bin/elementary/test_calendar.c index dbcf9463ad..d4c08d3752 100644 --- a/src/bin/elementary/test_calendar.c +++ b/src/bin/elementary/test_calendar.c @@ -409,11 +409,12 @@ _cal_format_cb(void *data EINA_UNUSED, Eina_Strbuf *str, const Eina_Value value) { struct tm current_time; - if (eina_value_type_get(&value) == EINA_VALUE_TYPE_TM) - { - eina_value_get(&value, ¤t_time); - eina_strbuf_append_strftime(str, "<< %b %y >>", ¤t_time); - } + //return if the value type is other than EINA_VALUE_TYPE_TM + if (eina_value_type_get(&value) != EINA_VALUE_TYPE_TM) + return; + + eina_value_get(&value, ¤t_time); + eina_strbuf_append_strftime(str, "<< %b %y >>", ¤t_time); } void --