From 3d04dade8f29cd0755d7c2db2cac9c344ef9574a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 19 Sep 2016 03:54:57 +0200 Subject: [PATCH] Remove some HAVE_ZLIB ifdefs --- core_info.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core_info.c b/core_info.c index e8ced4a08f..d712930891 100644 --- a/core_info.c +++ b/core_info.c @@ -572,10 +572,9 @@ core_info_t *core_info_get(core_info_list_t *list, size_t i) 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 + size_t i; struct string_list *list = NULL; -#endif - size_t supported = 0, i; + size_t supported = 0; if (!core_info_list) return; @@ -608,10 +607,8 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list, break; } -#ifdef HAVE_ZLIB if (list) string_list_free(list); -#endif *infos = core_info_list->list; *num_infos = supported;