From 68209f1b5c5c36510646b064285964b86c6421b9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 23 Sep 2022 20:16:58 +0300 Subject: [PATCH 18/18] download_modpack_recursive(): Fix dead 'filenbr' assignment See osdn #45688 Signed-off-by: Marko Lindqvist --- tools/download.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/download.c b/tools/download.c index 2fbf561f88..0fea2d176b 100644 --- a/tools/download.c +++ b/tools/download.c @@ -62,7 +62,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) { @@ -278,7 +278,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