]> granicus.if.org Git - curl/commitdiff
oops, variables first then code
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Dec 2004 14:33:37 +0000 (14:33 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Dec 2004 14:33:37 +0000 (14:33 +0000)
lib/sendf.c

index 91671b95eaf82b2d777935be60e52a053f522253..4094c32396798ece909b2e89ccdb402abd8b98ab 100644 (file)
@@ -154,8 +154,8 @@ void Curl_infof(struct SessionHandle *data, const char *fmt, ...)
 void Curl_failf(struct SessionHandle *data, const char *fmt, ...)
 {
   va_list ap;
-  va_start(ap, fmt);
   size_t len;
+  va_start(ap, fmt);
 
   vsnprintf(data->state.buffer, BUFSIZE, fmt, ap);