]> 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:49:28 +0000 (10:49 -0600)
commitbb27d5e1fedf4ed4e594d8a9237938884c7e529c
tree151222ded2d4b0477a281939c3e23e731eca08c8
parent3d71bcd2f4e6cc0f05d08a3ffd691ed2b3be01d0
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