<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18813">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">geoloc_eprofile.c: Fix setting of loc_src in set_loc_src()<br><br>line 196: loc_src = '\0';<br>should have been<br>line 196: *loc_src = '\0';<br><br>The issue was caught by the gcc optimizer complaining that<br>loc_src had a zero length because the pointer itself was being<br>set to NULL instead of the _contents_ of the pointer being set<br>to the NULL terminator.<br><br>ASTERISK-30138<br>Reported-by: Sean Bright<br><br>Change-Id: Id247be113cc8510f043ca053d5b4f5f3d32acd29<br>---<br>M res/res_geolocation/geoloc_eprofile.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/13/18813/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_geolocation/geoloc_eprofile.c b/res/res_geolocation/geoloc_eprofile.c</span><br><span>index 64244f4..af0e89c 100644</span><br><span>--- a/res/res_geolocation/geoloc_eprofile.c</span><br><span>+++ b/res/res_geolocation/geoloc_eprofile.c</span><br><span>@@ -193,7 +193,7 @@</span><br><span> </span><br><span> loc_src = strchr(local_uri, ';');</span><br><span> if (loc_src) {</span><br><span style="color: hsl(0, 100%, 40%);">- loc_src = '\0';</span><br><span style="color: hsl(120, 100%, 40%);">+ *loc_src = '\0';</span><br><span> loc_src++;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18813">change 18813</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/+/18813"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: Id247be113cc8510f043ca053d5b4f5f3d32acd29 </div>
<div style="display:none"> Gerrit-Change-Number: 18813 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>