From e8978e6bd4ad986f0f67887d61436774a6adea75 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Thu, 7 Sep 1995 22:14:58 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/ccache/stdio/ChangeLog | 5 +++++ src/lib/krb5/ccache/stdio/scc_gennew.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.26.2