enforce reset of xreq at init
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 13 Apr 2017 12:49:51 +0000 (14:49 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 13 Apr 2017 21:02:25 +0000 (23:02 +0200)
Change-Id: I37ff13a34c780ab00fb43e0a4daeda45db821c00
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-xreq.c

index 4282f62..fecd2f9 100644 (file)
@@ -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;
 }