summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-02-10 19:02:17 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-02-10 19:02:17 +0100
commit19bf6c9672970e77835eb322b91dcf049d1fa73a (patch)
treeb20731618cb200f62aa9fcf53c99a2dc5c5d0514 /tests
parente9dbf23a18c6f23542a41764e5e31016e1e4a799 (diff)
downloadweechat-19bf6c9672970e77835eb322b91dcf049d1fa73a.zip
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]
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/core/test-core-dir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/core/test-core-dir.cpp b/tests/unit/core/test-core-dir.cpp
index eee3093c5..e296e5823 100644
--- a/tests/unit/core/test-core-dir.cpp
+++ b/tests/unit/core/test-core-dir.cpp
@@ -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);