summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 4f3a156cc..74edefba0 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -99,7 +99,7 @@ const char *ipToString(const uint32_t address)
std::string strprintf(const char *const format, ...)
{
char buf[257];
- va_list(args);
+ va_list args;
va_start(args, format);
size_t nb = vsnprintf(buf, 256, format, args);
buf[256] = 0;