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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user