Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix close() of potentially uninitialized fd
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 25, 2011
1 parent 8f617b9 commit 01441ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/udp.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 01441ab

Please sign in to comment.