unix: fix close() of potentially uninitialized fd

This commit is contained in:
Ben Noordhuis 2011-09-25 02:49:21 +02:00
parent 8f617b93bc
commit 01441ab02f

View File

@ -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) {