<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17654">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Michael Bradeen: Looks good to me, but someone else must approve
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_variables: initialize uninitialized variable<br><br>The variable cp4 in a variable substitution function<br>can potentially be used without being initialized<br>currently. This causes Asterisk to no longer compile.<br><br>This initializes cp4 to NULL to make the compiler<br>happy.<br><br>ASTERISK-29803 #close<br><br>Change-Id: I392579cbb76db2795d5820c9427cf55fbcee9e72<br>---<br>M main/pbx_variables.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/pbx_variables.c b/main/pbx_variables.c</span><br><span>index 2088740..7a85989 100644</span><br><span>--- a/main/pbx_variables.c</span><br><span>+++ b/main/pbx_variables.c</span><br><span>@@ -692,7 +692,7 @@</span><br><span> int offset;</span><br><span> int offset2;</span><br><span> int isfunction;</span><br><span style="color: hsl(0, 100%, 40%);">- char *cp4;</span><br><span style="color: hsl(120, 100%, 40%);">+ char *cp4 = NULL;</span><br><span> char workspace[VAR_BUF_SIZE] = "";</span><br><span> </span><br><span> /* We have a variable. Find the start and end, and determine</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17654">change 17654</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/17654"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I392579cbb76db2795d5820c9427cf55fbcee9e72 </div>
<div style="display:none"> Gerrit-Change-Number: 17654 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>