From 2f6d5870939b83af53744a5c1b90c577b5c359da Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 1 Jul 2002 21:03:59 +0000 Subject: [PATCH] * init_sec_context.c (get_credentials): Delete unused variable git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14594 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 1 + src/lib/gssapi/krb5/init_sec_context.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index f7a8b0a30..4c206d46a 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -18,6 +18,7 @@ OM_uint32 and krb5_error_code. * k5unseal.c (kg_unseal_v1): Move a variable declaration and assignment to fix gcc "possibly uninitialized" warning. + * init_sec_context.c (get_credentials): Delete unused variable. 2002-03-03 Sam Hartman diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index 72e3ccfac..f368689a8 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -101,8 +101,7 @@ static krb5_error_code get_credentials(context, cred, server, now, { krb5_error_code code; krb5_creds in_creds; - int i; - + memset((char *) &in_creds, 0, sizeof(krb5_creds)); if ((code = krb5_copy_principal(context, cred->princ, &in_creds.client))) -- 2.26.2