From 3bb10b4d31d68a8139e284c27f7eb6fca897721d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sat, 17 Aug 2019 14:18:41 +0200 Subject: Uninitialized list nodes fixes --- lib/resource.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/resource.c b/lib/resource.c index ab8c800f..7e624321 100644 --- a/lib/resource.c +++ b/lib/resource.c @@ -340,6 +340,7 @@ mb_alloc(pool *p, unsigned size) struct mblock *b = xmalloc(sizeof(struct mblock) + size); b->r.class = &mb_class; + b->r.n = (node) {}; add_tail(&p->inside, &b->r.n); b->size = size; return b->data; -- cgit v1.2.3