]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize array
authorAlan T. DeKok <aland@freeradius.org>
Mon, 11 Nov 2019 17:00:44 +0000 (12:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 11 Nov 2019 17:00:44 +0000 (12:00 -0500)
src/lib/server/cf_parse.c

index f353d567178584fa38705a2c8d95dfb324ad8a17..40f53b0a350a0a72d936a50115b50ccde9dd2a74 100644 (file)
@@ -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