]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up compiler
authorAlan T. DeKok <aland@freeradius.org>
Wed, 30 Apr 2025 19:29:55 +0000 (15:29 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 30 Apr 2025 19:29:55 +0000 (15:29 -0400)
it's too dumb to see that to_cast is initialized on all paths

src/lib/server/tmpl_eval.c

index 4dd7199927478e5f8d43405a59d35d8120bade23..e0acc1530e5b7e156472359de2c63d14be22f72f 100644 (file)
@@ -281,8 +281,8 @@ ssize_t _tmpl_to_type(void *out,
 {
        fr_value_box_t          value_to_cast = FR_VALUE_BOX_INITIALISER_NULL(value_to_cast);
        fr_value_box_t          value_from_cast = FR_VALUE_BOX_INITIALISER_NULL(value_from_cast);
-       fr_value_box_t const    *to_cast;
-       fr_value_box_t const    *from_cast;
+       fr_value_box_t const    *to_cast = NULL;
+       fr_value_box_t const    *from_cast = NULL;
 
        fr_pair_t               *vp = NULL;