forked from enlightenment/enlightenment
Don't use strlen to check for empty string
SVN revision: 23043
This commit is contained in:
parent
6d775e62d2
commit
a75b750f14
|
@ -275,7 +275,7 @@ _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
|||
{
|
||||
const char *fallback;
|
||||
fallback = e_widget_config_list_nth_get(cfdata->gui.fallback_list, i);
|
||||
if (fallback != NULL && strlen(fallback) > 0)
|
||||
if ((fallback) && (fallback[0]))
|
||||
e_font_fallback_append(fallback);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ static void _button_cb_add(void *data, void *obj)
|
|||
if (!o) return;
|
||||
if (!wd) return;
|
||||
|
||||
if (wd->cur_entry && strlen(wd->cur_entry) > 0)
|
||||
if ((wd->cur_entry) && (wd->cur_entry[0]))
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -204,9 +204,7 @@ static void _button_cb_add(void *data, void *obj)
|
|||
{
|
||||
const char *label;
|
||||
label = e_widget_ilist_nth_label_get(wd->gui.list, i);
|
||||
if ( label != NULL &&
|
||||
strlen(label) > 0 &&
|
||||
!strcmp(label, wd->cur_entry) )
|
||||
if ((label) && (!strcmp(label, wd->cur_entry)))
|
||||
{
|
||||
e_widget_ilist_selected_set(wd->gui.list, i);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue