mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
embrace compiler wilderness
This commit is contained in:
1 parent
60bfa45656
commit
98dc50b3cd
1 file changed
+3
-3
+3
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user