From: Joseph Sutton Date: Tue, 5 Sep 2023 02:17:14 +0000 (+1200) Subject: s4:kdc: Prefer explicit initialization to ZERO_STRUCTP() X-Git-Tag: tevent-0.16.0~581 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41d974389e9546e47fa6fff3a15e649c5c4c452b;p=thirdparty%2Fsamba.git s4:kdc: Prefer explicit initialization to ZERO_STRUCTP() Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index 4c9ea3f2848..3821815d0dd 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -520,7 +520,7 @@ static krb5_error_code samba_kdc_fill_user_keys(krb5_context context, salt.data, salt.length); if (ret) { - ZERO_STRUCTP(key.salt); + *key.salt = (struct sdb_salt) {}; sdb_key_free(&key); goto fail; }