diff options
Diffstat (limited to 'src/tool_msgs.c')
-rw-r--r-- | src/tool_msgs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_msgs.c b/src/tool_msgs.c index 91d62ec1e..9cce8063e 100644 --- a/src/tool_msgs.c +++ b/src/tool_msgs.c @@ -109,8 +109,8 @@ void warnf(struct GlobalConfig *config, const char *fmt, ...) void helpf(FILE *errors, const char *fmt, ...) { - va_list ap; if(fmt) { + va_list ap; va_start(ap, fmt); fputs("curl: ", errors); /* prefix it */ vfprintf(errors, fmt, ap); |