From 11be2254c0cd1cacc9ff5d8c9c031e4ed72d8a31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 13 Apr 2017 14:49:51 +0200 Subject: [PATCH 1/1] enforce reset of xreq at init MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I37ff13a34c780ab00fb43e0a4daeda45db821c00 Signed-off-by: José Bollo --- src/afb-xreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afb-xreq.c b/src/afb-xreq.c index 4282f624..fecd2f95 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -491,6 +491,7 @@ void afb_xreq_begin(struct afb_xreq *xreq) void afb_xreq_init(struct afb_xreq *xreq, const struct afb_xreq_query_itf *queryitf) { + memset(xreq, 0, sizeof *xreq); xreq->refcount = 1; xreq->queryitf = queryitf; } -- 2.16.6