From bff3669e0815bf128b354654947d7c59f90ae76f Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 25 Sep 2007 07:57:06 +0000 Subject: [PATCH] Make the logic visible for FlexeLint git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2029 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/shmlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5