From fe0d0217e488ed924fb69d7c3c6d0e15ff7fe005 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 23 Sep 2022 20:16:58 +0300 Subject: [PATCH 28/28] download_modpack_recursive(): Fix dead 'filenbr' assignment See osdn #45688 Signed-off-by: Marko Lindqvist --- tools/fcmp/download.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/fcmp/download.c b/tools/fcmp/download.c index 4c9d0c9ae7..0d2baa307c 100644 --- a/tools/fcmp/download.c +++ b/tools/fcmp/download.c @@ -64,7 +64,7 @@ static void nf_cb(const char *msg, void *data) Download modpack from a given URL **************************************************************************/ const char *download_modpack(const char *URL, - const struct fcmp_params *fcmp, + const struct fcmp_params *fcmp, dl_msg_callback mcb, dl_pb_callback pbcb) { @@ -287,7 +287,6 @@ static const char *download_modpack_recursive(const char *URL, pbcb(1, total_files + 1); } - filenbr = 0; for (filenbr = 0; filenbr < total_files; filenbr++) { const char *dest_name; -- 2.35.1