Commit c93fa739 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Another little tweak


git-svn-id: http://www.varnish-cache.org/svn/trunk@239 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent fd1ed3bb
......@@ -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);
......
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