Commit 9173f5c7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Assert non-null first


git-svn-id: http://www.varnish-cache.org/svn/trunk@330 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ecd985b9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment