<p>George Joseph <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6666">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve; Approved for Submit
Richard Mudgett: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">main/strings: Fix uninitialized value.<br><br>ast_strings_match uses sscanf and checks for non-zero return to verify a<br>token was parsed. This is incorrect as sscanf returns EOF (-1) for errors.<br><br>ASTERISK-27318 #close<br><br>Change-Id: Ifcece92605f58116eff24c5a0a3b0ee08b3c87b1<br>---<br>M main/strings.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/strings.c b/main/strings.c<br>index 3207fa1..82e315a 100644<br>--- a/main/strings.c<br>+++ b/main/strings.c<br>@@ -312,7 +312,7 @@<br> }<br> <br> equals:<br>- scan_numeric = (sscanf(left, "%lf", &left_num) && sscanf(internal_right, "%lf", &right_num));<br>+ scan_numeric = (sscanf(left, "%lf", &left_num) > 0 && sscanf(internal_right, "%lf", &right_num) > 0);<br> <br> if (internal_op[0] == '=') {<br> if (ast_strlen_zero(left) && ast_strlen_zero(internal_right)) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6666">change 6666</a>. To unsubscribe, 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/6666"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ifcece92605f58116eff24c5a0a3b0ee08b3c87b1 </div>
<div style="display:none"> Gerrit-Change-Number: 6666 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>