<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13017">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">libmsc/sgs_vty.c: fix dead array comparation against null<br><br>Comparing an array to null is not useful: sgs->cfg.vlr_name,<br>since the expression will always evaluate as true.<br><br>Change-Id: If045e42fca0315b0777eb86c44bf934ce58b340b<br>Fixes: CID#190871 Array compared against 0 (NO_EFFECT)<br>---<br>M src/libmsc/sgs_vty.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/17/13017/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/libmsc/sgs_vty.c b/src/libmsc/sgs_vty.c</span><br><span>index 5b26178..cbe9370 100644</span><br><span>--- a/src/libmsc/sgs_vty.c</span><br><span>+++ b/src/libmsc/sgs_vty.c</span><br><span>@@ -160,9 +160,9 @@</span><br><span>      vty_out(vty, "sgs%s", VTY_NEWLINE);</span><br><span>        if (sgs->cfg.local_port != SGS_PORT_DEFAULT)</span><br><span>              vty_out(vty, " local-port %u%s", sgs->cfg.local_port, VTY_NEWLINE);</span><br><span style="color: hsl(0, 100%, 40%);">-        if (sgs->cfg.local_addr)</span><br><span style="color: hsl(120, 100%, 40%);">+   if (strcmp(sgs->cfg.local_addr, DEFAULT_SGS_SERVER_IP))</span><br><span>           vty_out(vty, " local-ip %s%s", sgs->cfg.local_addr, VTY_NEWLINE);</span><br><span style="color: hsl(0, 100%, 40%);">-  if (sgs->cfg.vlr_name)</span><br><span style="color: hsl(120, 100%, 40%);">+     if (strcmp(sgs->cfg.vlr_name, DEFAULT_SGS_SERVER_VLR_NAME))</span><br><span>               vty_out(vty, " vlr-name %s%s", sgs->cfg.vlr_name, VTY_NEWLINE);</span><br><span> </span><br><span>     for (i = 0; i < ARRAY_SIZE(sgs->cfg.timer); i++) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13017">change 13017</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/13017"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If045e42fca0315b0777eb86c44bf934ce58b340b </div>
<div style="display:none"> Gerrit-Change-Number: 13017 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>