]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Initialise box in rest.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 4 Sep 2023 22:15:10 +0000 (16:15 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 4 Sep 2023 22:15:10 +0000 (16:15 -0600)
src/modules/rlm_rest/rest.c

index 13d290b4f5c9b3eae980850193bc54cffe97671a..c78390356a79d727a39d6a2add7d69be5a17a9cd 100644 (file)
@@ -859,7 +859,7 @@ static fr_pair_t *json_pair_alloc_leaf(UNUSED rlm_rest_t const *instance, UNUSED
 
        fr_pair_t               *vp;
 
-       fr_value_box_t          src;
+       fr_value_box_t          src = FR_VALUE_BOX_INITIALISER_NULL(src);
 
        if (json_object_is_type(leaf, json_type_null)) {
                RDEBUG3("Got null value for attribute \"%s\" (skipping)", da->name);