From: Ken Raeburn Date: Sun, 25 Mar 2007 23:09:56 +0000 (+0000) Subject: Initialize values to avoid 'possibly uninitialized' compiler warnings X-Git-Tag: krb5-1.7-alpha1~1221 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=823b40bf4cdffef31583aad3c2c15a1ad23b62a5;p=krb5.git Initialize values to avoid 'possibly uninitialized' compiler warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19281 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 18d737c34..f59b899c6 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -225,7 +225,7 @@ krb5_preauth_supply_preauth_data(krb5_context context, const char *attr, const char *value) { - krb5_error_code retval; + krb5_error_code retval = 0; int i; void *pctx; const char *emsg = NULL; @@ -1597,7 +1597,7 @@ krb5_do_preauth(krb5_context context, if (!realdone) { krb5_init_preauth_context(context); if (context->preauth_context != NULL) { - int module_ret, module_flags; + int module_ret = 0, module_flags; #ifdef DEBUG fprintf (stderr, "trying modules for pa_type %d, flag %d\n", in_padata[i]->pa_type, paorder[h]);