<p>sungtae kim has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11202">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_sip.c: Fixed compile warning<br><br>Fixed uninitialized compile warning for chan_sip.c.<br><br>ASTERISK-28362<br><br>Change-Id: Id015040942b235fbbbd02219572916aadd537f42<br>---<br>M channels/chan_sip.c<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/11202/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_sip.c b/channels/chan_sip.c</span><br><span>index b5bfad4..8039d40 100644</span><br><span>--- a/channels/chan_sip.c</span><br><span>+++ b/channels/chan_sip.c</span><br><span>@@ -11642,11 +11642,12 @@</span><br><span> red_cp = &red_fmtp[strlen(red_fmtp)];</span><br><span> strncpy(red_fmtp, a, 100);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- sscanf(red_cp, "%30u", (unsigned *)&red_data_pt[*red_num_gen]);</span><br><span style="color: hsl(0, 100%, 40%);">- red_cp = strtok_r(red_cp, "/", &rest);</span><br><span style="color: hsl(0, 100%, 40%);">- while (red_cp && (*red_num_gen)++ < AST_RED_MAX_GENERATION) {</span><br><span style="color: hsl(120, 100%, 40%);">+ while (1) {</span><br><span> sscanf(red_cp, "%30u", (unsigned *)&red_data_pt[*red_num_gen]);</span><br><span> red_cp = strtok_r(NULL, "/", &rest);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!red_cp || (*red_num_gen)++ >= AST_RED_MAX_GENERATION) {</span><br><span style="color: hsl(120, 100%, 40%);">+ break;</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> }</span><br><span> red_cp = red_fmtp;</span><br><span> found = TRUE;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11202">change 11202</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/+/11202"/><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: Id015040942b235fbbbd02219572916aadd537f42 </div>
<div style="display:none"> Gerrit-Change-Number: 11202 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>