r789 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Fri Aug 11 09:01:14 CEST 2006
Author: phk
Date: 2006-08-11 09:01:13 +0200 (Fri, 11 Aug 2006)
New Revision: 789
Modified:
trunk/varnish-cache/bin/varnishd/cache_pass.c
Log:
Fix an assert so it actually has a chance of firing: (an unsigned is
always >= 0)
Modified: trunk/varnish-cache/bin/varnishd/cache_pass.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pass.c 2006-08-11 06:26:41 UTC (rev 788)
+++ trunk/varnish-cache/bin/varnishd/cache_pass.c 2006-08-11 07:01:13 UTC (rev 789)
@@ -118,8 +118,8 @@
sp->wrk->acct.bodybytes += WRK_Write(sp->wrk, p, j);
WRK_Flush(sp->wrk);
p += j;
+ assert(u >= j);
u -= j;
- assert(u >= 0);
if (u == 0)
break;
p = bp = buf;
More information about the varnish-commit
mailing list