From: Chris Provenzano Date: Fri, 10 Mar 1995 17:25:03 +0000 (+0000) Subject: * fcc_destry.c (krb5_fcc_destroy()) X-Git-Tag: krb5-1.0-beta5~574 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84ea6e41500ad94dd417841b307d142d7055e056;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5098 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/ChangeLog b/src/lib/krb5/ccache/file/ChangeLog index 0c660a7cc..de6fb958f 100644 --- a/src/lib/krb5/ccache/file/ChangeLog +++ b/src/lib/krb5/ccache/file/ChangeLog @@ -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 * configure.in: take out ISODE_DEFS. diff --git a/src/lib/krb5/ccache/file/fcc_destry.c b/src/lib/krb5/ccache/file/fcc_destry.c index ad8dbcc3c..f4a92f0ed 100644 --- a/src/lib/krb5/ccache/file/fcc_destry.c +++ b/src/lib/krb5/ccache/file/fcc_destry.c @@ -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)) { diff --git a/src/lib/krb5/ccache/file/fcc_init.c b/src/lib/krb5/ccache/file/fcc_init.c index c78d416af..ec497892a 100644 --- a/src/lib/krb5/ccache/file/fcc_init.c +++ b/src/lib/krb5/ccache/file/fcc_init.c @@ -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); diff --git a/src/lib/krb5/ccache/file/fcc_maybe.c b/src/lib/krb5/ccache/file/fcc_maybe.c index 274c651c7..7b9fa6eee 100644 --- a/src/lib/krb5/ccache/file/fcc_maybe.c +++ b/src/lib/krb5/ccache/file/fcc_maybe.c @@ -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) {