From 665cd222d3aba7e15b1916dbf42b5d7ac278064f Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 26 Jun 2006 17:06:50 +0000 Subject: [PATCH] Another little tweak git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@239 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5