Fix issues reported by Coverity and clear windows warnings (#2467)

This commit is contained in:
Wenyong Huang
2023-08-17 10:54:02 +08:00
committed by GitHub
parent 4ce675aacd
commit e2f8721ec9
5 changed files with 21 additions and 14 deletions

View File

@ -275,7 +275,7 @@ os_socket_recv_from(bh_socket_t socket, void *buf, unsigned int len, int flags,
return -1;
}
}
else {
else if (src_addr) {
memset(src_addr, 0, sizeof(*src_addr));
}