From: phk Date: Tue, 25 Sep 2007 07:57:06 +0000 (+0000) Subject: Make the logic visible for FlexeLint X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff3669e0815bf128b354654947d7c59f90ae76f;p=varnish Make the logic visible for FlexeLint git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2029 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/shmlog.c b/varnish-cache/bin/varnishd/shmlog.c index 23a01172..089cd852 100644 --- a/varnish-cache/bin/varnishd/shmlog.c +++ b/varnish-cache/bin/varnishd/shmlog.c @@ -178,9 +178,9 @@ WSL_Flush(struct worker *w) unsigned char *p; unsigned l; - if (w->wlp == w->wlog) - return; l = pdiff(w->wlog, w->wlp); + if (l == 0) + return; LOCKSHM(&vsl_mtx); VSL_stats->shm_writes++; VSL_stats->shm_records += w->wlr;