diff options
author | Volker Lendecke <vl@samba.org> | 2015-12-21 21:29:13 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-01-11 01:31:59 +0100 |
commit | 551e268ac307bd352b2d45d3089319294261c9cd (patch) | |
tree | ce90b978b7dc791a39849ad0dc18d97a673caea2 /source3/lib/tldap.c | |
parent | 8842235a82bbf8fb65d23fa38d87c16c58040dce (diff) | |
download | samba-551e268ac307bd352b2d45d3089319294261c9cd.tar.gz |
tldap: Use struct initializer in tldap_search
Avoids a call to ZERO_STRUCT
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jan 11 01:31:59 CET 2016 on sn-devel-144
Diffstat (limited to 'source3/lib/tldap.c')
-rw-r--r-- | source3/lib/tldap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index a1e11a36580..d8b4f241bac 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -1840,11 +1840,9 @@ int tldap_search(struct tldap_context *ld, TALLOC_CTX *frame = talloc_stackframe(); struct tevent_context *ev; struct tevent_req *req; - struct tldap_sync_search_state state; - - ZERO_STRUCT(state); - state.mem_ctx = mem_ctx; - state.rc = TLDAP_SUCCESS; + struct tldap_sync_search_state state = { + .mem_ctx = mem_ctx, .rc = TLDAP_SUCCESS + }; ev = samba_tevent_context_init(frame); if (ev == NULL) { |