forked from enlightenment/efl
elm_spinner: do not SIGSEV on NULL format
Usually NULL was correct value, so lets return it back again
This commit is contained in:
parent
55e8c3b743
commit
440ee69335
|
@ -1348,7 +1348,7 @@ _elm_spinner_eo_base_constructor(Eo *obj, Elm_Spinner_Data *_pd EINA_UNUSED)
|
|||
EOLIAN static void
|
||||
_elm_spinner_label_format_set(Eo *obj, Elm_Spinner_Data *sd, const char *fmt)
|
||||
{
|
||||
if (!strchr(fmt, '%'))
|
||||
if (fmt && !strchr(fmt, '%'))
|
||||
{
|
||||
WRN("Warning: %s is an Illegal format, cannot be set", fmt);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue