summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-21 00:46:47 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-21 02:41:37 +0900
commit10f5a7b93ea044d0c6d4514214685f5b7577e841 (patch)
treeb5675b849d8203756daf7c7769f0a0413a747bd5
parent9c6edc463d944bcb600d81f6168f2e2f0068bb4b (diff)
diskselector: Compare correct variables.
It was comparing the same variable. Fixed coverity CID 1193236: Pointless string comparison (CONSTANT_EXPRESSION_RESULT) @fix
-rw-r--r--src/lib/elm_diskselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_diskselector.c b/src/lib/elm_diskselector.c
index 8a00fffc1..dfde8cd64 100644
--- a/src/lib/elm_diskselector.c
+++ b/src/lib/elm_diskselector.c
@@ -63,7 +63,7 @@ _selected_item_indicate(Elm_Diskselector_Item *item)
63 63
64 EINA_LIST_FOREACH(sd->r_items, l, it) 64 EINA_LIST_FOREACH(sd->r_items, l, it)
65 { 65 {
66 if (it->label && !strcmp(it->label, it->label)) 66 if (it->label && !strcmp(it->label, item->label))
67 edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm"); 67 edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
68 else 68 else
69 edje_object_signal_emit(VIEW(it), "elm,state,default", "elm"); 69 edje_object_signal_emit(VIEW(it), "elm,state,default", "elm");