You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/01/09 13:31:42 UTC

[incubator-nuttx] branch master updated: net/usrsock/usrsock_dev.c: Fix uninitialized return value introduced in 6a3c2ade.

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 260af07  net/usrsock/usrsock_dev.c: Fix uninitialized return value introduced in 6a3c2ade.
260af07 is described below

commit 260af07717353de2ac93dc6cc3d6a727eb4eef1e
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Thu Jan 9 07:31:40 2020 -0600

    net/usrsock/usrsock_dev.c: Fix uninitialized return value introduced in 6a3c2ade.
---
 net/usrsock/usrsock_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/usrsock/usrsock_dev.c b/net/usrsock/usrsock_dev.c
index cab8f59..26e9441 100644
--- a/net/usrsock/usrsock_dev.c
+++ b/net/usrsock/usrsock_dev.c
@@ -1166,7 +1166,7 @@ int usrsockdev_do_request(FAR struct usrsock_conn_s *conn,
 {
   FAR struct usrsockdev_s *dev = conn->dev;
   FAR struct usrsock_request_common_s *req_head = iov[0].iov_base;
-  int ret;
+  int ret = OK;
 
   if (!dev)
     {