diff --git a/src/main.c b/src/main.c
index 17a564772017b6855fe6f5ddd507d6480b559895..467fe080733ff9d717e8538388f14e9289fdc2fe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -576,7 +576,6 @@ static void warnf(struct Configurable *config, const char *fmt, ...)
     char *ptr;
     char print_buffer[256];
 
-    va_start(ap, fmt);
     va_start(ap, fmt);
     len = vsnprintf(print_buffer, sizeof(print_buffer), fmt, ap);
     va_end(ap);