From 98dc50b3cda15064c6062d850ce22a3ba5f9d6c5 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 23 Jun 2026 13:13:44 -0300 Subject: [PATCH] embrace compiler wilderness --- test/unit_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit_test.c b/test/unit_test.c index 5bf86a35..f9b8e0df 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -2555,15 +2555,15 @@ static void test_str(void) { } { - char s[1] = "."; + char s[1] = {'.'}; ASSERT(mg_path_is_sane(mg_str_n(s, 1)) == true); } { - char s[2] = "/."; + char s[2] = {'/', '.'}; // "/." ASSERT(mg_path_is_sane(mg_str_n(s, 2)) == true); } { - char s[3] = "a/."; + char s[3] = {'a', '/', '.'}; // "a/." ASSERT(mg_path_is_sane(mg_str_n(s, 3)) == true); } ASSERT(mg_path_is_sane(mg_str("")) == true);