summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-27 03:02:24 +0200
committerStefan Metzmacher <metze@samba.org>2013-12-11 22:46:09 +0100
commit7a97d4c4c36d27e2c0732d70345d1766a4a86e94 (patch)
tree2036003bbc23a1891d0f47e68c11fd9fafd4b29f
parent39888fd4a3960f3f6a52aad76507faf030888d57 (diff)
downloadsamba-7a97d4c4c36d27e2c0732d70345d1766a4a86e94.tar.gz
tevent: tevent_req_create() already uses ZERO_STRUCT(req)
There's no need to zero individual members. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r--lib/tevent/tevent_req.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c
index a324418b195..581b81869f6 100644
--- a/lib/tevent/tevent_req.c
+++ b/lib/tevent/tevent_req.c
@@ -70,14 +70,12 @@ struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx,
ZERO_STRUCTP(req);
req->internal.private_type = type;
req->internal.create_location = location;
- req->internal.finish_location = NULL;
req->internal.state = TEVENT_REQ_IN_PROGRESS;
req->internal.trigger = tevent_create_immediate(req);
if (!req->internal.trigger) {
talloc_free(req);
return NULL;
}
- req->internal.defer_callback_ev = NULL;
data = talloc_zero_size(req, data_size);
if (data == NULL) {