]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip, res_pjsip_session: initialize local variables
authorKevin Harwell <kharwell@digium.com>
Mon, 19 Oct 2020 20:31:14 +0000 (15:31 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 28 Oct 2020 14:51:08 +0000 (09:51 -0500)
commit439f7bb8485c08e2825e954158b8f8e898099ff9
treedd0c1880e8d4cc4afb9d46d0f28a10524fa2fff3
parentf89531cb98f59a5bf84067026e8676cdbb306079
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
res/res_pjsip/pjsip_transport_management.c
res/res_pjsip_session.c