diskselector: Compare correct variables.

It was comparing the same variable.
Fixed coverity CID 1193236:  Pointless string comparison
(CONSTANT_EXPRESSION_RESULT)

@fix
This commit is contained in:
Daniel Juyung Seo 2014-03-21 00:46:47 +09:00
parent 7fdf597440
commit a31c16d243
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ _selected_item_indicate(Elm_Diskselector_Item *item)
EINA_LIST_FOREACH(sd->r_items, l, it)
{
if (it->label && !strcmp(it->label, it->label))
if (it->label && !strcmp(it->label, item->label))
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
else
edje_object_signal_emit(VIEW(it), "elm,state,default", "elm");