Remove some compiler warnings
[lxde/lxappearance.git] / src / widget-theme.c
index f891e99..17141e5 100644 (file)
@@ -29,8 +29,8 @@ static GSList* load_themes_in_dir(const char* theme_dir, GSList* themes)
     GDir* dir = g_dir_open(theme_dir, 0, NULL);
     if(dir)
     {
-        const char* name;
-        while(name = g_dir_read_name(dir))
+        const char* name = NULL;
+        while(name == g_dir_read_name(dir))
         {
             /* test if we already have this in list */
             if(!g_slist_find_custom(themes, name, (GCompareFunc)strcmp))