buyuer commented on a change in pull request #4408:
URL: https://github.com/apache/incubator-nuttx/pull/4408#discussion_r696259409



##########
File path: net/local/local_sendpacket.c
##########
@@ -98,7 +98,7 @@ static int local_fifo_write(FAR struct file *filep, FAR const 
uint8_t *buf,
       nwritten += ret;
     }
 
-  return nwritten;
+  return nwritten > 0 ? nwritten : ret;

Review comment:
       > init ret to zero too
   
   Done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to