]> 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:19 +0000 (09:51 -0500)
commit92e1de458af79457db064d507bca28fe980f88ff
tree9c9b3c836fa72371bc7f8f9c51a0ea14da6ed310
parent65426f4312d93b3ca8410ea2dbdfd3674a95049f
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