krb5 commit: Initialize iterflags in update_princ_encryption

Benjamin Kaduk kaduk at mit.edu
Fri Aug 29 14:40:34 EDT 2014


https://github.com/krb5/krb5/commit/bf040d0c4072742efab854ab01af162569f0a8f7
commit bf040d0c4072742efab854ab01af162569f0a8f7
Author: Ben Kaduk <kaduk at mit.edu>
Date:   Fri Aug 29 13:14:07 2014 -0400

    Initialize iterflags in update_princ_encryption
    
    It is only assigned to in the non-dry-run case, which clang detects
    and aborts the build (when maintainer mode is enabled).
    
    ticket: 8005 (new)
    tags: pullup
    target_version: 1.13

 src/kadmin/dbutil/kdb5_mkey.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kadmin/dbutil/kdb5_mkey.c b/src/kadmin/dbutil/kdb5_mkey.c
index 9088d5f..2f90cb0 100644
--- a/src/kadmin/dbutil/kdb5_mkey.c
+++ b/src/kadmin/dbutil/kdb5_mkey.c
@@ -912,7 +912,7 @@ kdb5_update_princ_encryption(int argc, char *argv[])
     char *regexp = NULL;
     krb5_keyblock *act_mkey;
     krb5_keylist_node *master_keylist = krb5_db_mkey_list_alias(util_context);
-    krb5_flags iterflags;
+    krb5_flags iterflags = 0;
 
     while ((optchar = getopt(argc, argv, "fnv")) != -1) {
         switch (optchar) {


More information about the cvs-krb5 mailing list