From 79199e48a62a3cb5742ef3b9917e4f6cf135a742 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 23 Feb 2006 23:42:48 +0000 Subject: Fix crasher on creating of RRDs. --- tools/rrdbot-create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rrdbot-create.c') 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); -- cgit v1.2.3