summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-10 20:28:05 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-10 20:28:05 +0000
commit7f33df3da8ca9b2ed3666cb4074f7b88ff1f2df3 (patch)
treefb6392ae1c41554dae8383f63f1229535c0caf99 /legacy/efreet
parenta6acf1b2d0f219676366cba73bfff9da4bba04fd (diff)
efreet: always allocate icon_version
SVN revision: 77797
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/bin/efreet_icon_cache_create.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/legacy/efreet/src/bin/efreet_icon_cache_create.c b/legacy/efreet/src/bin/efreet_icon_cache_create.c
index e8d100c23e..bea869877b 100644
--- a/legacy/efreet/src/bin/efreet_icon_cache_create.c
+++ b/legacy/efreet/src/bin/efreet_icon_cache_create.c
@@ -961,17 +961,17 @@ main(int argc, char **argv)
961 if (theme->changed) 961 if (theme->changed)
962 changed = EINA_TRUE; 962 changed = EINA_TRUE;
963 963
964 if (!icon_version)
965 icon_version = NEW(Efreet_Cache_Version, 1);
966
967 icon_version->major = EFREET_ICON_CACHE_MAJOR;
968 icon_version->minor = EFREET_ICON_CACHE_MINOR;
969
964 if (theme->changed) 970 if (theme->changed)
965 { 971 {
966 Eina_Hash *themes; 972 Eina_Hash *themes;
967 Eina_Hash *icons; 973 Eina_Hash *icons;
968 974
969 if (!icon_version)
970 icon_version = NEW(Efreet_Cache_Version, 1);
971
972 icon_version->major = EFREET_ICON_CACHE_MAJOR;
973 icon_version->minor = EFREET_ICON_CACHE_MINOR;
974
975 themes = eina_hash_string_superfast_new(NULL); 975 themes = eina_hash_string_superfast_new(NULL);
976 icons = eina_hash_string_superfast_new(NULL); 976 icons = eina_hash_string_superfast_new(NULL);
977 977
@@ -1047,16 +1047,16 @@ main(int argc, char **argv)
1047 if (theme->changed) 1047 if (theme->changed)
1048 changed = EINA_TRUE; 1048 changed = EINA_TRUE;
1049 1049
1050 if (!icon_version)
1051 icon_version = NEW(Efreet_Cache_Version, 1);
1052
1053 icon_version->major = EFREET_ICON_CACHE_MAJOR;
1054 icon_version->minor = EFREET_ICON_CACHE_MINOR;
1055
1050 if (theme->changed) 1056 if (theme->changed)
1051 { 1057 {
1052 Eina_Hash *icons; 1058 Eina_Hash *icons;
1053 1059
1054 if (!icon_version)
1055 icon_version = NEW(Efreet_Cache_Version, 1);
1056
1057 icon_version->major = EFREET_ICON_CACHE_MAJOR;
1058 icon_version->minor = EFREET_ICON_CACHE_MINOR;
1059
1060 icons = eina_hash_string_superfast_new(NULL); 1060 icons = eina_hash_string_superfast_new(NULL);
1061 1061
1062 INF("scan fallback icons"); 1062 INF("scan fallback icons");