mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
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:
1 parent
43558a1d5f
commit
08437cfb67
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user