From: Alan T. DeKok Date: Mon, 11 Nov 2019 17:00:44 +0000 (-0500) Subject: initialize array X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07ecaf696955970ea26cab06aa971ee7f7dda030;p=thirdparty%2Ffreeradius-server.git initialize array --- diff --git a/src/lib/server/cf_parse.c b/src/lib/server/cf_parse.c index f353d567178..40f53b0a350 100644 --- a/src/lib/server/cf_parse.c +++ b/src/lib/server/cf_parse.c @@ -611,6 +611,8 @@ static int CC_HINT(nonnull(4,5)) cf_pair_parse_internal(TALLOC_CTX *ctx, void *o return -2; } + array = NULL; + /* * Functions don't necessarily *need* to write * anywhere, so their data pointer can be NULL. @@ -621,7 +623,6 @@ static int CC_HINT(nonnull(4,5)) cf_pair_parse_internal(TALLOC_CTX *ctx, void *o cf_log_err(cs, "Rule doesn't specify output destination"); return -1; } - array = NULL; } /* * Tmpl is outside normal range