mirror of
https://github.com/reactos/CMake.git
synced 2025-01-11 05:56:07 +00:00
Merge branch 'upstream-kwsys' into update-KWSys
This commit is contained in:
commit
1acc689665
@ -1323,7 +1323,7 @@ int SystemInformationImplementation::GetFullyQualifiedDomainName(
|
|||||||
|
|
||||||
for (ifa=ifas; ifa!=NULL; ifa=ifa->ifa_next)
|
for (ifa=ifas; ifa!=NULL; ifa=ifa->ifa_next)
|
||||||
{
|
{
|
||||||
int fam=ifa->ifa_addr->sa_family;
|
int fam = ifa->ifa_addr? ifa->ifa_addr->sa_family : -1;
|
||||||
if ((fam==AF_INET) || (fam==AF_INET6))
|
if ((fam==AF_INET) || (fam==AF_INET6))
|
||||||
{
|
{
|
||||||
char host[NI_MAXHOST]={'\0'};
|
char host[NI_MAXHOST]={'\0'};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user