fix some problems found by llvm
authorHannes Janetzek <hannes.janetzek@gmail.com>
Tue, 6 Oct 2009 21:39:34 +0000 (21:39 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Tue, 6 Oct 2009 21:39:34 +0000 (21:39 +0000)
SVN revision: 42921

src/modules/everything/evry.c
src/modules/everything/evry_plug_aggregator.c
src/modules/everything/sources/evry_plug_dir_browse.c
src/modules/everything/views/evry_plug_view_thumb.c

index 65f9b88..b2113bf 100644 (file)
@@ -1375,7 +1375,7 @@ _evry_clear(Evry_State *s)
        _evry_update(s, 1);
        return 1;
      }
-   else if (s->input[0] != 0)
+   else if (s->input && s->input[0] != 0)
      {
        s->input[0] = 0;
        _evry_update(s, 1);
index a5f0c8e..5858680 100644 (file)
@@ -178,7 +178,7 @@ _fetch(Evry_Plugin *plugin, const char *input)
          }
      }
 
-   if (lp && (eina_list_count(lp) == 2) || (!EVRY_PLUGIN(p)->items))
+   if (lp && ((eina_list_count(lp) == 2) || (!EVRY_PLUGIN(p)->items)))
      {
        pp = lp->data;
        EINA_LIST_FOREACH(pp->items, l, it)
index 285774f..4969f5d 100644 (file)
@@ -352,7 +352,6 @@ _fetch(Evry_Plugin *plugin, const char *input)
               }
 
             _folder_item_add(p, "/");
-            file = E_NEW(Evry_Item_File, 1);
 
             p->command = EINA_TRUE;
             return 1;
index f55b645..e4f57b7 100644 (file)
@@ -195,7 +195,6 @@ _e_smart_reconfigure_do(void *data)
           {
              x = 0;
              y += hh;
-             xx = sd->x - sd->cx + x;
           }
 
         it->x = x;
@@ -577,14 +576,15 @@ _pan_item_select(Evas_Object *obj, Item *it)
      {
        sd->cur_item->selected = EINA_FALSE;
        edje_object_signal_emit(sd->cur_item->frame, "e,state,unselected", "e");
-       sd->cur_item = it;
-       sd->cur_item->selected = EINA_TRUE;
      }
 
    if (it)
      {
        sd->update = EINA_FALSE;
 
+       sd->cur_item = it;
+       sd->cur_item->selected = EINA_TRUE;
+
        if (sd->view->list_mode)
          align = it->y - (double)it->y / (double)sd->ch * (sd->h - it->h);
        else if ((it->y + it->h) - sd->cy > sd->h)