1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

tests: fix compiler warning on empty snprintf format

This fixes the following warning:

test-core-dir.cpp:178:36: warning: zero-length gnu_printf format string [-Wformat-zero-length]
This commit is contained in:
Sébastien Helleu
2024-02-10 19:02:17 +01:00
parent e9dbf23a18
commit 19bf6c9672
+1 -1
View File
@@ -175,7 +175,7 @@ TEST(CoreDir, RemoveTrailingSeparators)
dir_remove_trailing_separators (NULL);
snprintf (path, sizeof (path), "");
path[0] = '\0';
dir_remove_trailing_separators (path);
STRCMP_EQUAL("", path);