[master] 91ac88d Silence a Flexelint warning
Poul-Henning Kamp
phk at varnish-cache.org
Sun Nov 13 11:10:10 CET 2011
commit 91ac88d789af4bdd1f546e96b8e7601abf7f04f3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sun Nov 13 10:05:39 2011 +0000
Silence a Flexelint warning
diff --git a/bin/varnishd/storage/storage_file.c b/bin/varnishd/storage/storage_file.c
index 58e1d3d..981d43e 100644
--- a/bin/varnishd/storage/storage_file.c
+++ b/bin/varnishd/storage/storage_file.c
@@ -227,7 +227,8 @@ alloc_smf(struct smf_sc *sc, size_t bytes)
b = bytes / sc->pagesize;
if (b >= NBUCKET)
b = NBUCKET - 1;
- for (sp = NULL; b < NBUCKET - 1; b++) {
+ sp = NULL;
+ for (; b < NBUCKET - 1; b++) {
sp = VTAILQ_FIRST(&sc->free[b]);
if (sp != NULL)
break;
More information about the varnish-commit
mailing list