<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18608">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts_sysmobts: fix: properly zero-initialize the feature vector<br><br>The last argument must be size of buffer, not size of size!<br><br>Change-Id: I6539a3c9829d4f74a18b1cc2aa522c69ff8e638d<br>---<br>M src/osmo-bsc/bts_sysmobts.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.osmocom.org:29418/osmo-bsc refs/changes/08/18608/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/bts_sysmobts.c b/src/osmo-bsc/bts_sysmobts.c</span><br><span>index 2537864..ad12733 100644</span><br><span>--- a/src/osmo-bsc/bts_sysmobts.c</span><br><span>+++ b/src/osmo-bsc/bts_sysmobts.c</span><br><span>@@ -54,7 +54,7 @@</span><br><span>     model_sysmobts.features.data = &model_sysmobts._features_data[0];</span><br><span>        model_sysmobts.features.data_len =</span><br><span>                           sizeof(model_sysmobts._features_data);</span><br><span style="color: hsl(0, 100%, 40%);">-  memset(model_sysmobts.features.data, 0, sizeof(model_sysmobts.features.data_len));</span><br><span style="color: hsl(120, 100%, 40%);">+    memset(model_sysmobts.features.data, 0, model_sysmobts.features.data_len);</span><br><span> </span><br><span>         osmo_bts_set_feature(&model_sysmobts.features, BTS_FEAT_GPRS);</span><br><span>         osmo_bts_set_feature(&model_sysmobts.features, BTS_FEAT_EGPRS);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18608">change 18608</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-bsc/+/18608"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6539a3c9829d4f74a18b1cc2aa522c69ff8e638d </div>
<div style="display:none"> Gerrit-Change-Number: 18608 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>