Avoid calling accessor function more than once when result is already in

a local.

llvm-svn: 135512
This commit is contained in:
Greg Clayton 2011-07-19 20:06:26 +00:00
parent 9189b20875
commit 72c66dde39
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ SocketAddress::SetAddress (const struct addrinfo *hints_ptr,
if (addr_info_ptr)
::memset (addr_info_ptr, 0, sizeof(struct addrinfo));
}
return IsValid();
return is_valid;
}