mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05: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)
|
struct getout *new_getout(struct OperationConfig *config)
|
||||||
{
|
{
|
||||||
static int outnum = 0;
|
|
||||||
struct getout *node = calloc(1, sizeof(struct getout));
|
struct getout *node = calloc(1, sizeof(struct getout));
|
||||||
struct getout *last = config->url_last;
|
struct getout *last = config->url_last;
|
||||||
if(node) {
|
if(node) {
|
||||||
|
static int outnum = 0;
|
||||||
|
|
||||||
/* append this new node last in the list */
|
/* append this new node last in the list */
|
||||||
if(last)
|
if(last)
|
||||||
last->next = node;
|
last->next = node;
|
||||||
|
Loading…
Reference in New Issue
Block a user