]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix unitialized value (#4068)
authorJorge Pereira <jpereira@users.noreply.github.com>
Thu, 22 Apr 2021 17:51:12 +0000 (14:51 -0300)
committerGitHub <noreply@github.com>
Thu, 22 Apr 2021 17:51:12 +0000 (13:51 -0400)
src/protocols/dhcpv4/encode.c

index fd3059b0eac57f49a470f5cc60d771390f5383dc..35613d63d3e2f25e80d457ffa6285506f975903d 100644 (file)
@@ -103,7 +103,7 @@ static ssize_t encode_value(fr_dbuff_t *dbuff,
 static bool extend_option(fr_dbuff_t *dbuff, fr_dbuff_marker_t *hdr, int len)
 {
        size_t header_bytes;
-       uint8_t                 type, option_len = 0;
+       uint8_t                 type = 0, option_len = 0;
        fr_dbuff_marker_t       src, dest, hdr_io;
 
        /*