From: Ken Raeburn Date: Mon, 2 Feb 2009 17:39:59 +0000 (+0000) Subject: explicitly initialize pointer fields after memset (for coverity) X-Git-Tag: krb5-1.8-alpha1~743 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df577dd81ea3ccb5752cab0f01386c803593755d;p=krb5.git explicitly initialize pointer fields after memset (for coverity) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21861 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index e7742216e..2175e9ecd 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -132,6 +132,7 @@ static krb5_error_code get_credentials(context, cred, server, now, k5_mutex_assert_locked(&cred->lock); memset((char *) &in_creds, 0, sizeof(krb5_creds)); + in_creds.client = in_creds.server = NULL; if ((code = krb5_copy_principal(context, cred->princ, &in_creds.client))) goto cleanup;