unix: fix close() of potentially uninitialized fd
This commit is contained in:
parent
8f617b93bc
commit
01441ab02f
@ -301,6 +301,7 @@ static int uv__udp_bind(uv_udp_t* handle,
|
||||
|
||||
saved_errno = errno;
|
||||
status = -1;
|
||||
fd = -1;
|
||||
|
||||
/* Check for bad flags. */
|
||||
if (flags & ~UV_UDP_IPV6ONLY) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user