1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

use ZERO_STRUCT() instead of memset

(This used to be commit 0820840423)
This commit is contained in:
Andrew Tridgell 2003-06-10 03:48:09 +00:00
parent 2cfc19f899
commit 1d008cd2cb

View File

@ -255,7 +255,7 @@ static krb5_error_code ads_krb5_mk_req(krb5_context context,
}
/* obtain ticket & session key */
memset((char *)&creds, 0, sizeof(creds));
ZERO_STRUCT(creds);
if ((retval = krb5_copy_principal(context, server, &creds.server))) {
DEBUG(1,("krb5_copy_principal failed (%s)\n",
error_message(retval)));