[experimental-ims] 91ac88d Silence a Flexelint warning

Geoff Simmons geoff at varnish-cache.org
Mon Jan 9 21:52:32 CET 2012


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