diff --git a/modules/sql_cacher/sql_cacher.c b/modules/sql_cacher/sql_cacher.c index 8a2866bf5e4..ac023a43699 100644 --- a/modules/sql_cacher/sql_cacher.c +++ b/modules/sql_cacher/sql_cacher.c @@ -1139,7 +1139,7 @@ static void cache_init_load(int sender, void *param) static int mod_init(void) { - cache_entry_t *c_entry, *c_prev = NULL; + cache_entry_t *c_entry; db_handlers_t *db_hdls; char use_timer = 0; @@ -1202,7 +1202,6 @@ static int mod_init(void) db_hdls->next = db_hdls_list; db_hdls_list = db_hdls; - c_prev = c_entry; c_entry = c_entry->next; }