You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/29 19:30:57 UTC

[6/7] incubator-mynewt-core git commit: lwip_base - Fix read of uninitialized variable.

lwip_base - Fix read of uninitialized variable.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/01e86707
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/01e86707
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/01e86707

Branch: refs/heads/1_0_0_b1_dev
Commit: 01e86707d509c8bc7d7afd7e1bdd464c7ee7a3f5
Parents: a934f1e
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Nov 29 11:29:19 2016 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Nov 29 11:32:03 2016 -0800

----------------------------------------------------------------------
 net/ip/src/lwip_socket.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/01e86707/net/ip/src/lwip_socket.c
----------------------------------------------------------------------
diff --git a/net/ip/src/lwip_socket.c b/net/ip/src/lwip_socket.c
index ddf7be7..36e8e0e 100644
--- a/net/ip/src/lwip_socket.c
+++ b/net/ip/src/lwip_socket.c
@@ -448,6 +448,7 @@ lwip_stream_tx(struct lwip_sock *s, int notify)
     struct os_mbuf *m;
     struct os_mbuf *n;
 
+    rc = 0;
     while (s->ls_tx && rc == 0) {
         m = s->ls_tx;
         n = SLIST_NEXT(m, om_next);