summaryrefslogtreecommitdiff
path: root/src/tool_paramhlp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_paramhlp.c')
-rw-r--r--src/tool_paramhlp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c
index 461474644..49deb0929 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;