diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3b0a18d412513581839683abe660c0a68733bb43..4054c6cff313de16d5323a5491a41c61b4f1475c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -25355,7 +25355,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, str /* Session-Timers */ 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 session refresh interval and who will be the refresher */ diff --git a/main/format_pref.c b/main/format_pref.c index 4ab607e167803e66ae8e8edf2bf8d324d6a3a8da..4ea9f0cc74198f109394aaac9cb2d789be1d2315 100644 --- a/main/format_pref.c +++ b/main/format_pref.c @@ -317,7 +317,7 @@ struct ast_format_list ast_codec_pref_getsize(struct ast_codec_pref *pref, struc /*! \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) { - int x, slot, found; + int x, slot, found = 0; size_t f_len = 0; const struct ast_format_list *f_list = ast_format_list_get(&f_len);