avoid uninit variable and unreachable code warnings
most of these warnings are not problems because of ample use of abort() calls. However, the large number of warnings makes it difficult to identify real problems. Initialize the variables to shut up the compilers. Change-Id: I8477c11b17c7b6a7d9074c721fdd2d7303b186a8
This commit is contained in:

committed by
Jeffrey Altman

parent
36dcd37cc7
commit
6850d6a65f
@@ -62,7 +62,7 @@ add_constrained_delegation(krb5_context contextp,
|
||||
krb5_error_code ret;
|
||||
HDB_extension ext;
|
||||
krb5_data buf;
|
||||
size_t size;
|
||||
size_t size = 0;
|
||||
|
||||
memset(&ext, 0, sizeof(ext));
|
||||
ext.mandatory = FALSE;
|
||||
@@ -110,7 +110,7 @@ add_aliases(krb5_context contextp, kadm5_principal_ent_rec *princ,
|
||||
HDB_extension ext;
|
||||
krb5_data buf;
|
||||
krb5_principal p;
|
||||
size_t size;
|
||||
size_t size = 0;
|
||||
int i;
|
||||
|
||||
memset(&ext, 0, sizeof(ext));
|
||||
@@ -152,7 +152,7 @@ add_pkinit_acl(krb5_context contextp, kadm5_principal_ent_rec *princ,
|
||||
krb5_error_code ret;
|
||||
HDB_extension ext;
|
||||
krb5_data buf;
|
||||
size_t size;
|
||||
size_t size = 0;
|
||||
int i;
|
||||
|
||||
memset(&ext, 0, sizeof(ext));
|
||||
|
@@ -512,8 +512,8 @@ foreach_principal(const char *exp_str,
|
||||
const char *funcname,
|
||||
void *data)
|
||||
{
|
||||
char **princs;
|
||||
int num_princs;
|
||||
char **princs = NULL;
|
||||
int num_princs = 0;
|
||||
int i;
|
||||
krb5_error_code saved_ret = 0, ret = 0;
|
||||
krb5_principal princ_ent;
|
||||
|
Reference in New Issue
Block a user