From: Volker Lendecke Date: Sun, 12 Nov 2017 13:48:24 +0000 (+0100) Subject: lib: Avoid a ZERO_STRUCT, save a few bytes .text X-Git-Tag: talloc-2.1.11~501 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c6e2704fb8f97ab8658df6354e9b5dc1e7b1b96;p=thirdparty%2Fsamba.git lib: Avoid a ZERO_STRUCT, save a few bytes .text Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c index 267709e3c11..e593ae8536c 100644 --- a/source3/libnet/libnet_dssync.c +++ b/source3/libnet/libnet_dssync.c @@ -337,7 +337,6 @@ static NTSTATUS libnet_dssync_build_request(TALLOC_CTX *mem_ctx, uint32_t count; uint32_t level; union drsuapi_DsGetNCChangesRequest req; - struct dom_sid null_sid; enum drsuapi_DsExtendedOperation extended_op; struct drsuapi_DsReplicaObjectIdentifier *nc = NULL; struct drsuapi_DsReplicaCursorCtrEx *cursors = NULL; @@ -348,7 +347,6 @@ static NTSTATUS libnet_dssync_build_request(TALLOC_CTX *mem_ctx, DRSUAPI_DRS_GET_ANC | DRSUAPI_DRS_NEVER_SYNCED; - ZERO_STRUCT(null_sid); ZERO_STRUCT(req); if (ctx->remote_info28.supported_extensions @@ -366,7 +364,7 @@ static NTSTATUS libnet_dssync_build_request(TALLOC_CTX *mem_ctx, } nc->dn = dn; nc->guid = GUID_zero(); - nc->sid = null_sid; + nc->sid = (struct dom_sid) {0}; if (!ctx->single_object_replication && !ctx->force_full_replication && utdv)