From: Mark Eichin Date: Thu, 7 Sep 1995 22:14:58 +0000 (+0000) Subject: * scc_gennew.c (krb5_scc_generate_new): don't use automatic X-Git-Tag: krb5-1.0-beta6~1123 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8978e6bd4ad986f0f67887d61436774a6adea75;p=krb5.git * scc_gennew.c (krb5_scc_generate_new): don't use automatic aggregate initialization. so we can still compile under sunos git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6738 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/stdio/ChangeLog b/src/lib/krb5/ccache/stdio/ChangeLog index 1d84c8aac..a503fbd93 100644 --- a/src/lib/krb5/ccache/stdio/ChangeLog +++ b/src/lib/krb5/ccache/stdio/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 7 18:07:56 1995 Mark Eichin + + * scc_gennew.c (krb5_scc_generate_new): don't use automatic + aggregate initialization. + Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu) * scc_read.c, scc_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g diff --git a/src/lib/krb5/ccache/stdio/scc_gennew.c b/src/lib/krb5/ccache/stdio/scc_gennew.c index 1baf36155..316a00ff9 100644 --- a/src/lib/krb5/ccache/stdio/scc_gennew.c +++ b/src/lib/krb5/ccache/stdio/scc_gennew.c @@ -108,7 +108,9 @@ krb5_scc_generate_new (context, id) } /* For version 4 we save a length for the rest of the header */ if (KRB5_SCC_DEFAULT_FVNO == KRB5_SCC_FVNO_4) { - unsigned char scc_flen[2] = { 0, 0 }; + unsigned char scc_flen[2]; + scc_flen[0] = 0; + scc_flen[1] = 0; if (!fwrite((char *)scc_flen, sizeof(scc_flen), 1, f)) { retcode = krb5_scc_interpret(context, errno); (void) fclose(f);