rpcclient: Avoid a ZERO_STRUCT, save a few bytes .text
authorVolker Lendecke <vl@samba.org>
Sun, 12 Nov 2017 13:48:24 +0000 (14:48 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 13 Nov 2017 22:54:46 +0000 (23:54 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpcclient/cmd_drsuapi.c

index 6a1fac7bfad3b77bf06efe747dcfe6a171291980..b2221a713dd87e86a68ef3a5ccd62c05cf10136c 100644 (file)
@@ -328,7 +328,6 @@ static WERROR cmd_drsuapi_getncchanges(struct rpc_pipe_client *cli,
        union drsuapi_DsGetNCChangesRequest req;
        union drsuapi_DsGetNCChangesCtr ctr;
        struct drsuapi_DsReplicaObjectIdentifier nc;
-       struct dom_sid null_sid;
 
        struct drsuapi_DsGetNCChangesCtr1 *ctr1 = NULL;
        struct drsuapi_DsGetNCChangesCtr6 *ctr6 = NULL;
@@ -362,7 +361,6 @@ static WERROR cmd_drsuapi_getncchanges(struct rpc_pipe_client *cli,
 
        ZERO_STRUCT(info28);
 
-       ZERO_STRUCT(null_sid);
        ZERO_STRUCT(req);
 
        GUID_from_string(DRSUAPI_DS_BIND_GUID, &bind_guid);
@@ -463,7 +461,7 @@ static WERROR cmd_drsuapi_getncchanges(struct rpc_pipe_client *cli,
 
        nc.dn = nc_dn;
        nc.guid = GUID_zero();
-       nc.sid = null_sid;
+       nc.sid = (struct dom_sid) {0};
 
        if (supported_extensions & DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V8) {
                level = 8;