* curl-shim.c (curl_easy_perform): Fix build warning (code before
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 6 Dec 2005 18:49:34 +0000 (18:49 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 6 Dec 2005 18:49:34 +0000 (18:49 +0000)
declaration).

keyserver/ChangeLog
keyserver/curl-shim.c

index f0a5814..676cc5d 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-06  David Shaw  <dshaw@jabberwocky.com>
+
+       * curl-shim.c (curl_easy_perform): Fix build warning (code before
+       declaration).
+
 2005-11-02  David Shaw  <dshaw@jabberwocky.com>
 
        * gpgkeys_hkp.c (search_key): Fix warning with typecast (though
index 7f9d431..cf8309b 100644 (file)
@@ -201,9 +201,10 @@ curl_easy_perform(CURL *curl)
                  while((len=iobuf_read_line(curl->hd.fp_read,
                                             &line,&buflen,&maxlen)))
                    {
-                     maxlen=1024;
                      size_t ret;
 
+                     maxlen=1024;
+
                      ret=(curl->writer)(line,len,1,curl->file);
                      if(ret!=len)
                        {