<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10032">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty: initialize termios before using it<br><br>valgrind complains about using unitialised bytes in syscalls.<br>I could imagine this happens when tcgetattr fails to set termios.<br><br>Change-Id: I9d165911fa3127afa8f836fa5c5c2e14a949474a<br>---<br>M src/vty/vty.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/libosmocore refs/changes/32/10032/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/vty.c b/src/vty/vty.c</span><br><span>index 08258e7..4d5ffea 100644</span><br><span>--- a/src/vty/vty.c</span><br><span>+++ b/src/vty/vty.c</span><br><span>@@ -1506,7 +1506,7 @@</span><br><span> {</span><br><span>   struct vty *vty;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  struct termios t;</span><br><span style="color: hsl(120, 100%, 40%);">+     struct termios t = { 0 };</span><br><span> </span><br><span>        tcgetattr(vty_sock, &t);</span><br><span>         cfmakeraw(&t);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10032">change 10032</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/10032"/><meta itemprop="name" content="View Change"/></div></div>

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