* fcc_destry.c (krb5_fcc_destroy())
authorChris Provenzano <proven@mit.edu>
Fri, 10 Mar 1995 17:25:03 +0000 (17:25 +0000)
committerChris Provenzano <proven@mit.edu>
Fri, 10 Mar 1995 17:25:03 +0000 (17:25 +0000)
* fcc_init.c   (krb5_fcc_initialize())
Initialize kret before returning it.

* fcc_maybe.c (fcc_lock_file()) Initialize st before returning it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5098 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/ChangeLog
src/lib/krb5/ccache/file/fcc_destry.c
src/lib/krb5/ccache/file/fcc_init.c
src/lib/krb5/ccache/file/fcc_maybe.c

index 0c660a7cc757b287ff03316fef8f49afe457b1b4..de6fb958f6d5d345c4f3b51c81ae874928d1b803 100644 (file)
@@ -1,3 +1,11 @@
+Thu Mar 09 18:43:10 1995  Chris Provenzano (proven@mit.edu)
+
+       * fcc_destry.c (krb5_fcc_destroy())
+       * fcc_init.c   (krb5_fcc_initialize())
+               Initialize kret before returning it.
+
+       * fcc_maybe.c (fcc_lock_file()) Initialize st before returning it.
+
 Tue Mar  7 19:54:48 1995  Mark Eichin  <eichin@cygnus.com>
 
        * configure.in: take out ISODE_DEFS.
index ad8dbcc3cc866d2423cc325ecd00e83983e95e56..f4a92f0ed070c7daee84a64a68c0fce7997f07bc 100644 (file)
@@ -44,7 +44,7 @@ krb5_fcc_destroy(context, id)
      unsigned int wlen;
      char zeros[BUFSIZ];
      register int ret;
-     krb5_error_code kret;
+     krb5_error_code kret = 0;
       
      
      if (OPENCLOSE(id)) {
index c78d416af04248e8e79ef309bcfce5d55c35432f..ec497892a94e1af5f4bf553f2db96f08d130a961 100644 (file)
@@ -46,7 +46,7 @@ krb5_fcc_initialize(context, id, princ)
    krb5_ccache id;
    krb5_principal princ;
 {
-     krb5_error_code kret;
+     krb5_error_code kret = 0;
      int reti;
 
      MAYBE_OPEN(context, id, FCC_OPEN_AND_ERASE);
index 274c651c720d19e791e54ca638271faddcf0c94a..7b9fa6eee54e732c7cc269f3737ea589eceb3f3b 100644 (file)
@@ -168,7 +168,7 @@ krb5_fcc_data *data;
 int fd;
 int lockunlock;
 {
-  krb5_error_code st;
+  krb5_error_code st = 0;
 #ifdef POSIX_FILE_LOCKS
   st = fcc_lock_file_posix(data, fd, lockunlock);
   if (st != EINVAL) {