From: José Bollo Date: Thu, 13 Apr 2017 12:49:51 +0000 (+0200) Subject: enforce reset of xreq at init X-Git-Tag: dab_3.99.1~56 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=11be2254c0cd1cacc9ff5d8c9c031e4ed72d8a31;p=src%2Fapp-framework-binder.git enforce reset of xreq at init Change-Id: I37ff13a34c780ab00fb43e0a4daeda45db821c00 Signed-off-by: José Bollo --- 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; }