summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2008-07-29 18:55:41 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2008-07-29 18:55:41 +0000
commite909810628e4161a5eff432c7600efb85a745218 (patch)
tree421dbe8ed6198a312226f55dbc56083f9290ffbf /legacy/efreet
parent31c9bed5031a88a057ad09f5a5beea10a082e9d6 (diff)
remove uneeded variable.
SVN revision: 35245
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_icon.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/legacy/efreet/src/lib/efreet_icon.c b/legacy/efreet/src/lib/efreet_icon.c
index 8bae27b0dd..67223a1b7a 100644
--- a/legacy/efreet/src/lib/efreet_icon.c
+++ b/legacy/efreet/src/lib/efreet_icon.c
@@ -1407,7 +1407,6 @@ efreet_icon_theme_index_read(Efreet_Icon_Theme *theme, const char *path)
1407 if (tmp) 1407 if (tmp)
1408 { 1408 {
1409 char *t, *s, *p; 1409 char *t, *s, *p;
1410 int last = 0;
1411 1410
1412 theme->directories = ecore_list_new(); 1411 theme->directories = ecore_list_new();
1413 ecore_list_free_cb_set(theme->directories, 1412 ecore_list_free_cb_set(theme->directories,
@@ -1417,17 +1416,16 @@ efreet_icon_theme_index_read(Efreet_Icon_Theme *theme, const char *path)
1417 s = t; 1416 s = t;
1418 p = s; 1417 p = s;
1419 1418
1420 while (!last) 1419 while (p)
1421 { 1420 {
1422 p = strchr(s, ','); 1421 p = strchr(s, ',');
1423 1422
1424 if (!p) last = 1; 1423 if (p) *p = '\0';
1425 else *p = '\0';
1426 1424
1427 ecore_list_append(theme->directories, 1425 ecore_list_append(theme->directories,
1428 efreet_icon_theme_directory_new(ini, s)); 1426 efreet_icon_theme_directory_new(ini, s));
1429 1427
1430 if (!last) s = ++p; 1428 if (p) s = ++p;
1431 } 1429 }
1432 1430
1433 FREE(t); 1431 FREE(t);