mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
tool_paramhlp: reduce variable scope
Closes https://github.com/curl/curl/pull/6576
This commit is contained in:
parent
4c02d003ff
commit
fa624f0baa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user