]> err.no Git - varnish/commitdiff
Initialize storage modules magic element.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 May 2007 10:20:57 +0000 (10:20 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 22 May 2007 10:20:57 +0000 (10:20 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1462 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_malloc.c

index 0ddd20aec8a44e07b3dd4a6a2687b06468d0b3db..4417546f5cf2be83d4ffdb8f0f5fea2824e0edc2 100644 (file)
@@ -55,6 +55,7 @@ sma_alloc(struct stevedore *st, size_t size)
        sma->s.space = size;
        sma->s.fd = -1;
        sma->s.stevedore = st;
+       sma->s.magic = STORAGE_MAGIC;
        return (&sma->s);
 }