<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/20394">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gtphub_test: fix compilation error on gcc 10.2.0<br><br>Ensure dump && hex can't be zero.<br><br>gtphub_test.c: In function ‘_reply_is.constprop’:<br>gtphub_test.c:535:3: error: ‘%s’ directive argument is null [-Werror=format-overflow=]<br><br>Change-Id: Id27bf46855a228935fe706584f9b27cf3facf623<br>---<br>M tests/gtphub/gtphub_test.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/94/20394/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/gtphub/gtphub_test.c b/tests/gtphub/gtphub_test.c</span><br><span>index d381b9b..dab3977 100644</span><br><span>--- a/tests/gtphub/gtphub_test.c</span><br><span>+++ b/tests/gtphub/gtphub_test.c</span><br><span>@@ -529,6 +529,8 @@</span><br><span>      const char *dump = osmo_hexdump_nospc(reply_buf, len);</span><br><span>       int cmp = strcmp(dump, hex);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+      OSMO_ASSERT(dump && hex);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  if (cmp != 0) {</span><br><span>              printf("\n%s:%d: reply_is(): MISMATCH\n"</span><br><span>                  "  expecting:\n'%s'\n"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/20394">change 20394</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-sgsn/+/20394"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id27bf46855a228935fe706584f9b27cf3facf623 </div>
<div style="display:none"> Gerrit-Change-Number: 20394 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>