From: phk Date: Mon, 26 Jun 2006 17:06:50 +0000 (+0000) Subject: Another little tweak X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=665cd222d3aba7e15b1916dbf42b5d7ac278064f;p=varnish Another little tweak git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@239 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_malloc.c b/varnish-cache/bin/varnishd/storage_malloc.c index 09dbec1e..1469e4b5 100644 --- a/varnish-cache/bin/varnishd/storage_malloc.c +++ b/varnish-cache/bin/varnishd/storage_malloc.c @@ -25,7 +25,7 @@ sma_alloc(struct stevedore *st, unsigned size) sma->s.priv = sma; sma->s.ptr = malloc(size); assert(sma->s.ptr != NULL); - sma->s.len = size; + sma->s.len = 0; sma->s.space = size; sma->s.stevedore = st; return (&sma->s);