]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx_variables: initialize uninitialized variable
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 13 Dec 2021 22:49:52 +0000 (22:49 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 15 Dec 2021 16:58:05 +0000 (10:58 -0600)
commit5452ab997df2e9a34a95859f4a1f48f92ce978f7
treeb074c63b1ebddb9094411c4910f7aba92481f005
parent476b8aa4e49830802cfc6eda5a59db9452b51038
pbx_variables: initialize uninitialized variable

The variable cp4 in a variable substitution function
can potentially be used without being initialized
currently. This causes Asterisk to no longer compile.

This initializes cp4 to NULL to make the compiler
happy.

ASTERISK-29803 #close

Change-Id: I392579cbb76db2795d5820c9427cf55fbcee9e72
main/pbx_variables.c