fix: char buf[1] = "X" → {'X'} for -Wunterminated-string-initialization on Windows/clang

Signed-off-by: Raul Acosta <raul.acosta.mmm@gmail.com>
This commit is contained in:
Raul Acosta committed 2026-06-29 09:45:28 -06:00
1 parent 43558a1d5f
commit 08437cfb67
1 file changed
+1 -1
+1 -1
View File
@@ -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();