]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize "box"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 6 Apr 2021 18:08:14 +0000 (14:08 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 6 Apr 2021 18:08:14 +0000 (14:08 -0400)
src/lib/unlang/switch.c

index bdeb59adf810c120bfb7883ea4219b7d46757130..921268b051ae1765270402cbdf12c78c4698be51 100644 (file)
@@ -36,7 +36,7 @@ static unlang_action_t unlang_switch(rlm_rcode_t *p_result, request_t *request,
        unlang_switch_t         *switch_gext;
 
        tmpl_t                  vpt;
-       fr_value_box_t const    *box;
+       fr_value_box_t const    *box = NULL;
 
        fr_pair_t               *vp;
 
@@ -66,7 +66,6 @@ static unlang_action_t unlang_switch(rlm_rcode_t *p_result, request_t *request,
                                break;
                        }
 
-                       box = NULL;
                        goto do_null_case;
                } else {
                        box = &vp->data;