* scc_gennew.c (krb5_scc_generate_new): don't use automatic
authorMark Eichin <eichin@mit.edu>
Thu, 7 Sep 1995 22:14:58 +0000 (22:14 +0000)
committerMark Eichin <eichin@mit.edu>
Thu, 7 Sep 1995 22:14:58 +0000 (22:14 +0000)
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
src/lib/krb5/ccache/stdio/scc_gennew.c

index 1d84c8aac33a162603d8732c6d3b8d7d2212e7c1..a503fbd93ec58e614ec05550b26ff8cea4e58720 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  7 18:07:56 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * 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
index 1baf36155a11d8cf11d582eb57565e9b5e732274..316a00ff90bad5682c33dc2fe709162c5a713baf 100644 (file)
@@ -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);