<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/16223">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">common/vty.c: fix: properly assert() the result of get_string_value()<br><br>Change-Id: I6ecd46371e601ad0fb629f9756b36c9c4758a958<br>Fixes: CID#205067, CID#205068<br>---<br>M src/common/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-bts refs/changes/23/16223/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/vty.c b/src/common/vty.c</span><br><span>index 2558ba8..8b947a7 100644</span><br><span>--- a/src/common/vty.c</span><br><span>+++ b/src/common/vty.c</span><br><span>@@ -1613,7 +1613,7 @@</span><br><span>       struct log_target *tgt = osmo_log_vty2tgt(vty);</span><br><span>      uint16_t **sapi_mask;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       OSMO_ASSERT(sapi < 0);</span><br><span style="color: hsl(120, 100%, 40%);">+     OSMO_ASSERT(sapi >= 0);</span><br><span>   if (!tgt)</span><br><span>            return CMD_WARNING;</span><br><span> </span><br><span>@@ -1635,7 +1635,7 @@</span><br><span>      struct log_target *tgt = osmo_log_vty2tgt(vty);</span><br><span>      uint16_t *sapi_mask;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        OSMO_ASSERT(sapi < 0);</span><br><span style="color: hsl(120, 100%, 40%);">+     OSMO_ASSERT(sapi >= 0);</span><br><span>   if (!tgt)</span><br><span>            return CMD_WARNING;</span><br><span>  if (!tgt->filter_data[LOG_FLT_L1_SAPI])</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/16223">change 16223</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/c/osmo-bts/+/16223"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6ecd46371e601ad0fb629f9756b36c9c4758a958 </div>
<div style="display:none"> Gerrit-Change-Number: 16223 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>