From d388837ffe30883fa733b7b40e3fe41a8d7ae82a Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 5 Jul 2006 13:44:20 +0000 Subject: [PATCH] Assert non-null first git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@330 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index 6bd9ba9a..f596d2c8 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -483,9 +483,9 @@ smf_alloc(struct stevedore *st, size_t size) size &= ~(sc->pagesize - 1); AZ(pthread_mutex_lock(&sc->mtx)); smf = alloc_smf(sc, size); - assert(smf->size == size); AZ(pthread_mutex_unlock(&sc->mtx)); assert(smf != NULL); + assert(smf->size == size); smf->s.space = size; smf->s.priv = smf; smf->s.ptr = smf->ptr; -- 2.39.5