diskselector: Compare correct variables.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Thu, 20 Mar 2014 15:46:47 +0000 (00:46 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Thu, 20 Mar 2014 17:41:37 +0000 (02:41 +0900)
It was comparing the same variable.
Fixed coverity CID 1193236:  Pointless string comparison
(CONSTANT_EXPRESSION_RESULT)

@fix

src/lib/elm_diskselector.c

index 8a00fffc10d4051727ff12c72949e5ea7ca2e4a4..dfde8cd6471d8e08291f64551ae23dc64e4558a4 100644 (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");