From: Marcel Raad Date: Sat, 6 Feb 2021 10:40:18 +0000 (+0100) Subject: tool_paramhlp: reduce variable scope X-Git-Tag: curl-7_76_0~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa624f0baa4e1350546c31b54a5942f493de7dd3;p=thirdparty%2Fcurl.git tool_paramhlp: reduce variable scope Closes https://github.com/curl/curl/pull/6576 --- 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;