]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up compiler
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Apr 2022 18:38:41 +0000 (14:38 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Apr 2022 13:18:36 +0000 (09:18 -0400)
src/lib/util/value.c

index 4bfede85206cdfafc453af7e5c8e31f101b1b32f..26e900e7824bc089509a347ea2c5d919d2ff9098 100644 (file)
@@ -1709,14 +1709,14 @@ ssize_t fr_value_box_from_network(TALLOC_CTX *ctx,
                                 *      Or fields with a length prefix.
                                 */
                                if (enumv->flags.subtype == FLAG_LENGTH_UINT8) {
-                                       uint8_t num;
+                                       uint8_t num = 0;
 
                                        FR_DBUFF_OUT_RETURN(&num, &work_dbuff);
                                        newlen = num;
                                        offset = 1;
 
                                } else if (enumv->flags.subtype == FLAG_LENGTH_UINT16) {
-                                       uint16_t num;
+                                       uint16_t num = 0;
 
                                        FR_DBUFF_OUT_RETURN(&num, &work_dbuff);
                                        newlen = num;