From: Alan T. DeKok Date: Wed, 30 Apr 2025 19:29:55 +0000 (-0400) Subject: shut up compiler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9496aee963ad9d14814ae04b4c010e5a556b651f;p=thirdparty%2Ffreeradius-server.git shut up compiler it's too dumb to see that to_cast is initialized on all paths --- diff --git a/src/lib/server/tmpl_eval.c b/src/lib/server/tmpl_eval.c index 4dd7199927..e0acc1530e 100644 --- a/src/lib/server/tmpl_eval.c +++ b/src/lib/server/tmpl_eval.c @@ -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;