From 08437cfb67cb670624d385b54218840b0b599040 Mon Sep 17 00:00:00 2001 From: Raul Acosta Date: Mon, 29 Jun 2026 09:39:00 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20char=20buf[1]=20=3D=20"X"=20=E2=86=92=20?= =?UTF-8?q?{'X'}=20for=20-Wunterminated-string-initialization=20on=20Windo?= =?UTF-8?q?ws/clang?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raul Acosta --- tests/test_ast_profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ast_profile.c b/tests/test_ast_profile.c index 17251e75b..a715ce088 100644 --- a/tests/test_ast_profile.c +++ b/tests/test_ast_profile.c @@ -88,7 +88,7 @@ TEST(ast_profile_to_str_null) { TEST(ast_profile_to_str_small_buf) { cbm_ast_profile_t p = make_profile(); /* buf too small: should write empty string */ - char buf[1] = "X"; + char buf[1] = {'X'}; cbm_ast_profile_to_str(&p, buf, 0); /* 0-length buffer: function should handle gracefully */ PASS();