enforce reset of xreq at init
[src/app-framework-binder.git] / 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;
 }