by it not figuring out the control flow (initialization and use both
tied to some other variable).
DB2 code not included.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25146
dc483132-0cff-0310-8789-
dd5450dbe970
static int
kill_lru_tcp_or_rpc_connection(void *handle, verto_ev *newev)
{
- struct connection *c, *oldest_c = NULL;
+ struct connection *c = NULL, *oldest_c = NULL;
verto_ev *ev, *oldest_ev = NULL;
int i, fd = -1;
{
krb5_error_code kret;
char *kp, *sp, *ep;
- char sepchar, trailchar;
+ char sepchar = 0, trailchar = 0;
krb5_enctype ktype;
krb5_int32 stype;
krb5_key_salt_tuple *savep;
}
maxkvno = -1;
+ idx = -1;
datap = (krb5_key_data *) NULL;
for (i = *start; i < dbentp->n_key_data; i++) {
krb5_boolean similar;
int j, k = *module_count;
krb5_error_code code;
void *plugin_context = NULL;
- void **rcpp;
+ void **rcpp = NULL;
if (table->ad_type_list == NULL) {
#ifdef DEBUG
{
krb5_error_code retval;
krb5_kdc_req tgsreq;
- krb5_data *scratch, scratch2;
+ krb5_data *scratch, scratch2 = empty_data();
krb5_ticket *sec_ticket = NULL;
krb5_ticket *sec_ticket_arr[2];
krb5_timestamp time_now;
int (*msg_handler)(krb5_context, const krb5_data *, void *),
void *msg_handler_data, struct conn_state **winner_out)
{
- int e, selret;
+ int e, selret = 0;
struct timeval now;
struct conn_state *state;
register XDR *xdrs = &(cd->xdrs);
register bool_t stat;
- xdrproc_t xdr_results;
- caddr_t xdr_location;
+ xdrproc_t xdr_results = NULL;
+ caddr_t xdr_location = 0;
bool_t has_args;
if (msg->rm_reply.rp_stat == MSG_ACCEPTED &&
register int slen;
register bool_t stat = FALSE;
- xdrproc_t xdr_results;
- caddr_t xdr_location;
+ xdrproc_t xdr_results = NULL;
+ caddr_t xdr_location = 0;
bool_t has_args;
if (msg->rm_reply.rp_stat == MSG_ACCEPTED &&
krb5_auth_pack *auth_pack = NULL;
krb5_auth_pack_draft9 *auth_pack9 = NULL;
pkinit_kdc_context plgctx = NULL;
- pkinit_kdc_req_context reqctx;
+ pkinit_kdc_req_context reqctx = NULL;
krb5_preauthtype pa_type;
krb5_checksum cksum = {0, 0, 0, NULL};
krb5_data *der_req = NULL;
int num_to_create;
char principal_string[BUFSIZ];
char *suffix = 0;
- size_t suffix_size;
+ size_t suffix_size = 0;
int depth;
krb5_init_context(&test_context);
int num_to_check;
char principal_string[BUFSIZ];
char *suffix = 0;
- size_t suffix_size;
+ size_t suffix_size = 0;
int depth, errors;
krb5_init_context(&context);