diff options
author | Brad King <brad.king@kitware.com> | 2012-11-09 13:24:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-09 13:24:08 (GMT) |
commit | 1acc689665f1420d01bd5325acd15b1903703647 (patch) | |
tree | 5dd99a42d5a2134e1244cd5b913836d0b497a950 /Source/kwsys/SystemInformation.cxx | |
parent | ce761e123b8206f3b737a36fe9cbac61ead62a6b (diff) | |
parent | 4cf44d3621487415d5c2ccc5628c5e0c99119410 (diff) | |
download | CMake-1acc689665f1420d01bd5325acd15b1903703647.zip CMake-1acc689665f1420d01bd5325acd15b1903703647.tar.gz CMake-1acc689665f1420d01bd5325acd15b1903703647.tar.bz2 |
Merge branch 'upstream-kwsys' into update-KWSys
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 6b63b94..6d990a9 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -1323,7 +1323,7 @@ int SystemInformationImplementation::GetFullyQualifiedDomainName( 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)) { char host[NI_MAXHOST]={'\0'}; |