<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19266">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">geolocation: Fix issues exposed by compiling with -O2<br><br>Fixed "may be used uninitialized" errors in geoloc_config.c.<br><br>ASTERISK-30234<br><br>Change-Id: I1ea336bf7abbc16fa59b75720f0db8f1d960b3d4<br>---<br>M res/res_geolocation/geoloc_config.c<br>1 file changed, 14 insertions(+), 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/66/19266/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_geolocation/geoloc_config.c b/res/res_geolocation/geoloc_config.c</span><br><span>index dea7a22..26dd2d9 100644</span><br><span>--- a/res/res_geolocation/geoloc_config.c</span><br><span>+++ b/res/res_geolocation/geoloc_config.c</span><br><span>@@ -187,7 +187,7 @@</span><br><span> struct ast_geoloc_location *location;</span><br><span> const char *id = ast_sorcery_object_get_id(profile);</span><br><span> enum ast_geoloc_validate_result result;</span><br><span style="color: hsl(0, 100%, 40%);">- enum ast_geoloc_format format;</span><br><span style="color: hsl(120, 100%, 40%);">+ enum ast_geoloc_format format = AST_GEOLOC_FORMAT_NONE;</span><br><span> int rc = 0;</span><br><span> </span><br><span> if (!ast_strlen_zero(profile->location_reference)) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19266">change 19266</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/+/19266"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: certified/18.9 </div>
<div style="display:none"> Gerrit-Change-Id: I1ea336bf7abbc16fa59b75720f0db8f1d960b3d4 </div>
<div style="display:none"> Gerrit-Change-Number: 19266 </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>