From: Arran Cudbard-Bell Date: Mon, 4 Sep 2023 22:15:10 +0000 (-0600) Subject: Initialise box in rest.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdbaffa3d475185eb8e2fbb7c84d733c6486003d;p=thirdparty%2Ffreeradius-server.git Initialise box in rest.c --- diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index 13d290b4f5c..c78390356a7 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -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);