summaryrefslogtreecommitdiffstats
path: root/src/kadmin
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-02-01 11:52:48 -0500
committerGreg Hudson <ghudson@mit.edu>2013-02-01 11:53:38 -0500
commit1b7f7eef8a95bda0135159b2c06a168b56d9f42b (patch)
tree4b23cf65cddd481f5f297279bbdef5eb976fc076 /src/kadmin
parent1f6d917fb52be81c9d009d7c10177d1193bf5ae1 (diff)
downloadkrb5-1b7f7eef8a95bda0135159b2c06a168b56d9f42b.tar.gz
krb5-1b7f7eef8a95bda0135159b2c06a168b56d9f42b.tar.xz
krb5-1b7f7eef8a95bda0135159b2c06a168b56d9f42b.zip
Fix kdb5_util dump.c uninitialized warnings
Some versions of clang report an uninitialized variable warning (which we treat as an error) in process_k5beta_record. Due to the if-ladder style of the function, uninitialized tmpint values can be copied around in certain error cases, although the garbage values would be ultimately ignored. As a minimal fix, initialize the tmpint variables. ticket: 7560 (new) target_version: 1.11.1 tags: pullup
Diffstat (limited to 'src/kadmin')
-rw-r--r--src/kadmin/dbutil/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c
index 869724af68..66a72be9b5 100644
--- a/src/kadmin/dbutil/dump.c
+++ b/src/kadmin/dbutil/dump.c
@@ -1707,7 +1707,7 @@ process_k5beta_record(fname, kcontext, filep, flags, linenop)
int alt_key_len, salt_len, alt_salt_len;
char *name;
char *mod_name;
- int tmpint1, tmpint2, tmpint3;
+ int tmpint1 = 0, tmpint2 = 0, tmpint3 = 0;
int error;
const char *try2read;
int i;