forked from OSchip/llvm-project
Avoid calling accessor function more than once when result is already in
a local. llvm-svn: 135512
This commit is contained in:
parent
9189b20875
commit
72c66dde39
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue