Kouhei Sutou
kous****@users*****
Wed Aug 30 20:41:27 JST 2006
Index: kazehakase/src/main.c diff -u kazehakase/src/main.c:1.113 kazehakase/src/main.c:1.114 --- kazehakase/src/main.c:1.113 Tue Aug 29 22:58:50 2006 +++ kazehakase/src/main.c Wed Aug 30 20:41:27 2006 @@ -506,28 +506,28 @@ static void clean_history_cache (void) { - gchar *history_dir; guint limit_days = 30; gboolean limit = FALSE; time_t limit_seconds; - + KZ_CONF_GET("History", "limit_days", limit_days, INT); KZ_CONF_GET("History", "limit_cache", limit, BOOL); if (limit) { + gchar *history_dir, *image_dir; limit_seconds = limit_days * 86400; history_dir = g_strconcat(g_get_home_dir(), HISTORY_DIR, - NULL); + NULL); purge_history_file(history_dir, limit_seconds); g_free(history_dir); /* parge popup files */ - history_dir = g_strconcat(g_get_home_dir(), - IMAGE_DIR, - NULL); - purge_history_file(history_dir, limit_seconds); - g_free(history_dir); + image_dir = g_strconcat(g_get_home_dir(), + IMAGE_DIR, + NULL); + purge_history_file(image_dir, limit_seconds); + g_free(image_dir); if (exists_search_cmd) {