--- a/addons/ooh323c/src/ooq931.c +++ b/addons/ooh323c/src/ooq931.c @@ -585,7 +585,7 @@ unsigned int i; ASN1BOOL aligned=TRUE; int stat; - Q931InformationElement *ie; + Q931InformationElement *ie=NULL; /* OOCTXT *pctxt = &gH323ep.msgctxt; */ if(q931Msg ==NULL) { --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -396,7 +396,6 @@ { struct directory_item **block, *item; int i, limit, res = 0; - char buf[9]; /* option p(n): cellphone pause option */ select_item_pause(chan, flags, opts); @@ -409,13 +408,15 @@ for (i = 0; i < limit && !res; i++) { item = block[i]; - snprintf(buf, sizeof(buf), "digits/%d", i + 1); /* Press for , [ extension ] */ res = ast_streamfile(chan, "dir-multi1", ast_channel_language(chan)); if (!res) res = ast_waitstream(chan, AST_DIGIT_ANY); - if (!res) + if (!res) { + char buf[7+12]; /* INT_MIN has a length of 12 chars */ + snprintf(buf, sizeof(buf), "digits/%d", i + 1); res = ast_streamfile(chan, buf, ast_channel_language(chan)); + } if (!res) res = ast_waitstream(chan, AST_DIGIT_ANY); if (!res) --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -11198,7 +11198,7 @@ int skipuser, int max_logins, int silent) { int useadsi = 0, valid = 0, logretries = 0; - char password[AST_MAX_EXTENSION], *passptr; + char password[AST_MAX_EXTENSION], *passptr = NULL; struct ast_vm_user vmus, *vmu = NULL; /* If ADSI is supported, setup login screen */ --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -1181,7 +1181,7 @@ static int init_acf_query(struct ast_config *cfg, char *catg, struct acf_odbc_query **query) { const char *tmp; - const char *tmp2; + const char *tmp2 = NULL; int i; if (!cfg || !catg) {