<p>Stefan Sperling has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10576">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmocon: fix use of an initialized variable<br><br>osmocon.c: In function ‘read_file’:<br>osmocon.c:317:3: warning: ‘fd’ may be used uninitialized in this function<br><br>Change-Id: If07c58d5b55c18c05345607064eace02748935f8<br>---<br>M src/host/osmocon/osmocon.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/76/10576/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c</span><br><span>index 131eab7..a9497dc 100644</span><br><span>--- a/src/host/osmocon/osmocon.c</span><br><span>+++ b/src/host/osmocon/osmocon.c</span><br><span>@@ -314,7 +314,8 @@</span><br><span>  dnload.data = malloc(MAX_HDR_SIZE + payload_size);</span><br><span> </span><br><span>       if (!dnload.data) {</span><br><span style="color: hsl(0, 100%, 40%);">-             close(fd);</span><br><span style="color: hsl(120, 100%, 40%);">+            if (!chainload)</span><br><span style="color: hsl(120, 100%, 40%);">+                       close(fd);</span><br><span>           fprintf(stderr, "No memory\n");</span><br><span>            return -ENOMEM;</span><br><span>      }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10576">change 10576</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/10576"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If07c58d5b55c18c05345607064eace02748935f8 </div>
<div style="display:none"> Gerrit-Change-Number: 10576 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>