mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip, res_pjsip_session: initialize local variables
This patch initializes a couple of local variables to some default values. Interestingly, in the 'pj_status_t dlg_status' case the value not being initialized caused memory to grow, and not be recovered, in the off nominal path (at least on my machine). Change-Id: I22ee65e1e1bff8efacea8a167c6c8428898523f7
This commit is contained in:
committed by
George Joseph
parent
f89531cb98
commit
439f7bb848
@@ -78,7 +78,7 @@ static void keepalive_transport_send_keepalive(struct monitored_transport *monit
|
||||
static void *keepalive_transport_thread(void *data)
|
||||
{
|
||||
struct ao2_container *transports;
|
||||
pj_thread_desc desc;
|
||||
pj_thread_desc desc = { 0 };
|
||||
pj_thread_t *thread;
|
||||
|
||||
if (pj_thread_register("Asterisk Keepalive Thread", desc, &thread) != PJ_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user