]> err.no Git - varnish/commitdiff
Another little tweak
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 26 Jun 2006 17:06:50 +0000 (17:06 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 26 Jun 2006 17:06:50 +0000 (17:06 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@239 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_malloc.c

index 09dbec1e1135125905e9c11acd25466e2cc93bc3..1469e4b5d6b523adfaeae2f46e9ed64c21a810c7 100644 (file)
@@ -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);