Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

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

Raul Acosta08437cfb67cb
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();