nfs4_acls: Use C99 initializer instead of ZERO_STRUCTP for params struct
authorChristof Schmitt <cs@samba.org>
Tue, 9 Jul 2019 21:41:01 +0000 (14:41 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:28 +0000 (18:27 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/nfs4_acls.c

index bec7cc390d39f9321ccec4608a5a5d79268ba3c9..46b69ac3d826c8dad908595ad6ad4eef66328673 100644 (file)
@@ -72,7 +72,7 @@ int smbacl4_get_vfs_params(struct connection_struct *conn,
        };
        int enumval;
 
-       ZERO_STRUCTP(params);
+       *params = (struct smbacl4_vfs_params) { 0 };
 
        enumval = lp_parm_enum(SNUM(conn), SMBACL4_PARAM_TYPE_NAME, "mode",
                               enum_smbacl4_modes, e_simple);