]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbXsrv_version: Use a struct assignment instead of ZERO_STRUCT
authorVolker Lendecke <vl@samba.org>
Sat, 10 Feb 2024 09:36:51 +0000 (10:36 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 12 Mar 2024 13:31:31 +0000 (13:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smbXsrv_version.c

index c60e2ce0f370351a4ae11e5a612725a27bdd9c8b..2a54833ee6695a831ec3bd685ab043867866b3c4 100644 (file)
@@ -116,9 +116,10 @@ NTSTATUS smbXsrv_version_global_init(const struct server_id *server_id)
                        TALLOC_FREE(frame);
                        return NT_STATUS_NO_MEMORY;
                }
-               ZERO_STRUCT(global_blob);
-               global_blob.version = SMBXSRV_VERSION_CURRENT;
-               global_blob.info.info0 = global;
+               global_blob = (struct smbXsrv_version_globalB) {
+                       .version = SMBXSRV_VERSION_CURRENT,
+                       .info.info0 = global,
+               };
        } else {
                blob = data_blob_const(val.dptr, val.dsize);