From 496a69c7963f4a141933f421bdc48ee5b7b2d7f4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 7 Feb 2016 17:35:52 +0100 Subject: [PATCH] Cleanup --- core_info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core_info.c b/core_info.c index 37f89996be..9f0daeea46 100644 --- a/core_info.c +++ b/core_info.c @@ -501,14 +501,14 @@ static int core_info_qsort_cmp(const void *a_, const void *b_) void core_info_list_get_supported_cores(core_info_list_t *core_info_list, const char *path, const core_info_t **infos, size_t *num_infos) { +#ifdef HAVE_ZLIB struct string_list *list = NULL; +#endif size_t supported = 0, i; if (!core_info_list) return; - (void)list; - core_info_tmp_path = path; #ifdef HAVE_ZLIB @@ -545,7 +545,7 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list, string_list_free(list); #endif - *infos = core_info_list->list; + *infos = core_info_list->list; *num_infos = supported; }