summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tevent/tevent_req.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c
index 1ddf9ef155..0feabb5f1f 100644
--- a/lib/tevent/tevent_req.c
+++ b/lib/tevent/tevent_req.c
@@ -104,12 +104,11 @@ struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx,
return NULL;
}
- data = talloc_size(req, data_size);
+ data = talloc_zero_size(req, data_size);
if (data == NULL) {
talloc_free(req);
return NULL;
}
- memset(data, '\0', data_size);
talloc_set_name_const(data, type);
req->data = data;