]> err.no Git - varnish/commitdiff
Readability nit
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 13 Aug 2007 17:58:09 +0000 (17:58 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 13 Aug 2007 17:58:09 +0000 (17:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1837 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_pool.c

index 9350adfc420dbbac3d39a06bfcc14f63ec85d8ef..1855aa662b7cf81e62f45cd14a3eda639f32738c 100644 (file)
@@ -135,8 +135,9 @@ WRK_Write(struct worker *w, const void *ptr, int len)
        if (w->niov == MAX_IOVS)
                WRK_Flush(w);
        w->iov[w->niov].iov_base = (void*)(uintptr_t)ptr;
-       w->iov[w->niov++].iov_len = len;
+       w->iov[w->niov].iov_len = len;
        w->liov += len;
+       w->niov++;
        return (len);
 }