From: James Jones Date: Mon, 31 Jul 2023 15:19:05 +0000 (-0500) Subject: Missed out init in test_bstrncpy() (CID #1504057) (#5127) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d89d4c6b4c413c6429239312d5ca7367c9e4470;p=thirdparty%2Ffreeradius-server.git Missed out init in test_bstrncpy() (CID #1504057) (#5127) --- diff --git a/src/lib/util/sbuff_tests.c b/src/lib/util/sbuff_tests.c index 578e5f2b674..bb4f2452195 100644 --- a/src/lib/util/sbuff_tests.c +++ b/src/lib/util/sbuff_tests.c @@ -157,7 +157,7 @@ static void test_bstrncpy(void) { char const in[] = "i am a test string"; char const in_long[] = "i am a longer test string"; - char out[18 + 1]; + char out[18 + 1] = ""; fr_sbuff_t sbuff; ssize_t slen;