From e450a7f8c1c74132625d0a884f0ca851abd69197 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 24 Aug 2018 02:27:45 -0300 Subject: [PATCH] modules_deinit: Fix -Werror=declaration-after-statement --- src/core/modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/modules.c b/src/core/modules.c index 8439b73d..9b531899 100644 --- a/src/core/modules.c +++ b/src/core/modules.c @@ -288,8 +288,8 @@ void modules_deinit(void) g_hash_table_foreach(stridlookup, (GHFunc) uniq_get_modules, &list); while (list != NULL) { - module_uniq_destroy(list->data); void *tmp = list->data; + module_uniq_destroy(list->data); list = g_slist_remove(list, list->data); g_free(tmp); }