krb5 commit: Work around uninitialized warning in logger.c
Greg Hudson
ghudson at mit.edu
Thu Jan 14 16:24:15 EST 2016
https://github.com/krb5/krb5/commit/74d58620a1f17667156f45b0e59a5027ca109986
commit 74d58620a1f17667156f45b0e59a5027ca109986
Author: Greg Hudson <ghudson at mit.edu>
Date: Thu Jan 14 12:24:31 2016 -0500
Work around uninitialized warning in logger.c
gcc 4.6.3 erroneously detects uninitialized use of the variable f
after commit 9914b93516bbce9b1123ed5f9f796b7028944892. Initialize it
to work around this warning.
ticket: 8344
src/lib/kadm5/logger.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c
index f4a9387..3c314ff 100644
--- a/src/lib/kadm5/logger.c
+++ b/src/lib/kadm5/logger.c
@@ -359,7 +359,7 @@ krb5_klog_init(krb5_context kcontext, char *ename, char *whoami, krb5_boolean do
char savec = '\0';
int error;
int do_openlog, log_facility;
- FILE *f;
+ FILE *f = NULL;
/* Initialize */
do_openlog = 0;
More information about the cvs-krb5
mailing list