cldap: Avoid a ZERO_STRUCTP
authorVolker Lendecke <vl@samba.org>
Fri, 30 Mar 2018 17:08:42 +0000 (12:08 -0500)
committerJeremy Allison <jra@samba.org>
Tue, 3 Apr 2018 22:44:22 +0000 (00:44 +0200)
This is done implicitly by tevent_req_create

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/cldap/cldap.c

index 87f82b9b0dec7238b555e6ef5253453542f5dc0c..242a117301786f090e2936fbbcf9a80f132a5d79 100644 (file)
@@ -577,7 +577,6 @@ struct tevent_req *cldap_search_send(TALLOC_CTX *mem_ctx,
        if (!req) {
                return NULL;
        }
-       ZERO_STRUCTP(state);
        state->caller.ev = ev;
        state->req = req;
        state->caller.cldap = cldap;