serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1711395 - /serf/trunk/buckets/copy_buckets.c
Date Fri, 30 Oct 2015 00:43:15 GMT
Author: rhuijben
Date: Fri Oct 30 00:43:15 2015
New Revision: 1711395

URL: http://svn.apache.org/viewvc?rev=1711395&view=rev
Log:
* buckets/copy_buckets.c
  (serf_copy_read_iovec): Declare variables first for C89 compatibility.

Modified:
    serf/trunk/buckets/copy_buckets.c

Modified: serf/trunk/buckets/copy_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/copy_buckets.c?rev=1711395&r1=1711394&r2=1711395&view=diff
==============================================================================
--- serf/trunk/buckets/copy_buckets.c (original)
+++ serf/trunk/buckets/copy_buckets.c Fri Oct 30 00:43:15 2015
@@ -147,10 +147,11 @@ static apr_status_t serf_copy_read_iovec
     /* If somebody really wants to call us for 1 iovec, call the function
        that already implements the copying for this */
     if (vecs_size == 1) {
-        *vecs_used = 1;
         const char *data;
         apr_size_t len;
 
+        *vecs_used = 1;
+
         status = serf_copy_read(bucket, requested, &data, &len);
 
         vecs[0].iov_base = (void*)data;



Mime
View raw message