From 2f1905af94e4f1287d140ae79375c69d38cde6f6 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 24 Oct 2010 10:47:37 -0400 Subject: [PATCH] CLEARCACHE command fix when no filename was specified. --- src/cache.c | 2 +- src/commands.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cache.c b/src/cache.c index 55018bb7..32df2981 100644 --- a/src/cache.c +++ b/src/cache.c @@ -34,7 +34,7 @@ extern void log_write(const gchar *fmt, ...); static gboolean valid_key(const guchar *key, gsize len) { - gint b; + gsize b; for (b = 0; b < len; b++) { if (key[b]) diff --git a/src/commands.c b/src/commands.c index cba17146..97d206d3 100644 --- a/src/commands.c +++ b/src/commands.c @@ -2848,7 +2848,6 @@ static gint iscached_command(assuan_context_t ctx, gchar *line) static gint clearcache_command(assuan_context_t ctx, gchar *line) { - struct client_s *client = assuan_get_pointer(ctx); gchar **req = split_input_line(line, " ", 0); guchar md5file[16]; @@ -2857,7 +2856,7 @@ static gint clearcache_command(assuan_context_t ctx, gchar *line) if (!req || !*req) { g_strfreev(req); - cache_clear(client->md5file, 2); + cache_clear(NULL, 2); CACHE_UNLOCK; return send_error(ctx, 0); } -- 2.11.4.GIT