summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-xreq.c1
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;
}