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

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

commit 0f9605e1431774b0e0d1f3b2efee7d968626ac54
Author: SPRESENSE <[email protected]>
AuthorDate: Mon Sep 4 18:40:07 2023 +0900

    lte/alt1250: Fix usrsock_bind error by uninitialized value
    
    Fix usrsock_bind error by an undefined events variable which is caused
    by NuttX usrsock update.
---
 lte/alt1250/alt1250_usockif.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lte/alt1250/alt1250_usockif.c b/lte/alt1250/alt1250_usockif.c
index 08486a364..f421361e5 100644
--- a/lte/alt1250/alt1250_usockif.c
+++ b/lte/alt1250/alt1250_usockif.c
@@ -76,6 +76,7 @@ static int send_dataack(int fd, uint32_t ackxid, int32_t 
ackresult,
 
   dataack.reqack.head.msgid = USRSOCK_MESSAGE_RESPONSE_DATA_ACK;
   dataack.reqack.head.flags = 0;
+  dataack.reqack.head.events = 0;
   dataack.reqack.xid = ackxid;
   dataack.reqack.result = ackresult;
 
@@ -359,6 +360,7 @@ int usockif_sendack(int fd, int32_t usock_result, uint32_t 
usock_xid,
 
   ack.head.msgid = USRSOCK_MESSAGE_RESPONSE_ACK;
   ack.head.flags = inprogress ? USRSOCK_MESSAGE_FLAG_REQ_IN_PROGRESS : 0;
+  ack.head.events = 0;
   ack.xid = usock_xid;
   ack.result = usock_result;
 

Reply via email to