elm_spinner: do not SIGSEV on NULL format

Usually NULL was correct value, so lets return it back again
This commit is contained in:
Vitalii Vorobiov 2016-02-16 14:05:16 +00:00
parent 55e8c3b743
commit 440ee69335
1 changed files with 1 additions and 1 deletions

View File

@ -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;