Fix compilation error in gcc

This commit is contained in:
Abdelrahman Said 2025-02-22 14:58:19 +00:00
parent f89a4bf343
commit f9f8f092b5

View File

@ -65,7 +65,7 @@ TestFuncResult test_cpath_join_path(void) {
} }
memset(out, 0, strlen(out)); memset(out, 0, strlen(out));
snprintf(expected, 1, ""); snprintf(expected, 1, "%s", "");
wapp_cpath_join_path(out, "", ""); wapp_cpath_join_path(out, "", "");
result = result && strcmp(out, expected) == 0; result = result && strcmp(out, expected) == 0;