summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/rrdbot-create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rrdbot-create.c b/tools/rrdbot-create.c
index 73a5541..86f5b27 100644
--- a/tools/rrdbot-create.c
+++ b/tools/rrdbot-create.c
@@ -265,7 +265,7 @@ cfg_value(const char* filename, const char* header, const char* name,
/* Do cleanup */
ctx->confname = NULL;
- for( ; ctx->args; ctx->args = ctx->args->next)
+ while(ctx->args)
{
arg = ctx->args->next;
free(ctx->args->def);