]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Missed out init in test_bstrncpy() (CID #1504057) (#5127)
authorJames Jones <jejones3141@gmail.com>
Mon, 31 Jul 2023 15:19:05 +0000 (10:19 -0500)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 15:19:05 +0000 (11:19 -0400)
src/lib/util/sbuff_tests.c

index 578e5f2b674a994108ad9160af2ca0e46952ef43..bb4f2452195a49f130084dfec3f5f059bfcbea9e 100644 (file)
@@ -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;