<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17654">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/54/17654/1</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 91b5bbb..ffa0d51 100644</span><br><span>--- a/main/pbx_variables.c</span><br><span>+++ b/main/pbx_variables.c</span><br><span>@@ -686,7 +686,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><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: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>