From fa624f0baa4e1350546c31b54a5942f493de7dd3 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sat, 6 Feb 2021 11:40:18 +0100 Subject: [PATCH] tool_paramhlp: reduce variable scope Closes https://github.com/curl/curl/pull/6576 --- src/tool_paramhlp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 4614746441..49deb0929f 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -40,10 +40,11 @@ struct getout *new_getout(struct OperationConfig *config) { - static int outnum = 0; struct getout *node = calloc(1, sizeof(struct getout)); struct getout *last = config->url_last; if(node) { + static int outnum = 0; + /* append this new node last in the list */ if(last) last->next = node; -- 2.47.3