Address uninitialized conditional that valgrind found

........

Merged revisions 384162 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 384163 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/78/78/1
Kinsey Moore 12 years ago
parent 15b892323a
commit 72bccf69c3

@ -25683,7 +25683,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, str
/* Session-Timers */ /* Session-Timers */
if ((p->sipoptions & SIP_OPT_TIMER)) { if ((p->sipoptions & SIP_OPT_TIMER)) {
enum st_refresher_param st_ref_param; enum st_refresher_param st_ref_param = SESSION_TIMER_REFRESHER_PARAM_UNKNOWN;
/* The UAC has requested session-timers for this session. Negotiate /* The UAC has requested session-timers for this session. Negotiate
the session refresh interval and who will be the refresher */ the session refresh interval and who will be the refresher */

@ -317,7 +317,7 @@ struct ast_format_list ast_codec_pref_getsize(struct ast_codec_pref *pref, struc
/*! \brief Pick a codec */ /*! \brief Pick a codec */
struct ast_format *ast_codec_choose(struct ast_codec_pref *pref, struct ast_format_cap *cap, int find_best, struct ast_format *result) struct ast_format *ast_codec_choose(struct ast_codec_pref *pref, struct ast_format_cap *cap, int find_best, struct ast_format *result)
{ {
int x, slot, found; int x, slot, found = 0;
size_t f_len = 0; size_t f_len = 0;
const struct ast_format_list *f_list = ast_format_list_get(&f_len); const struct ast_format_list *f_list = ast_format_list_get(&f_len);

Loading…
Cancel
Save