]> 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:48:47 +0000 (10:48 -0600)
commitcfcbf0adad08c198ec9001f0bf292dd68306ad4b
tree6f8c4a9bdcc41906e92fbb53f73f0af1da00cb50
parent92cb1c0a599454bec2f59ac61e40a6f2408187ef
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