diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-04-13 14:49:51 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-04-13 23:02:25 +0200 |
commit | 11be2254c0cd1cacc9ff5d8c9c031e4ed72d8a31 (patch) | |
tree | 1907b478179c6a82a6523d56ab02dc5e93ea4f58 | |
parent | a06a69b1cb23283095b3b7f959d2d6c5ec4a6432 (diff) |
enforce reset of xreq at init
Change-Id: I37ff13a34c780ab00fb43e0a4daeda45db821c00
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-xreq.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |