diff options
author | Brad King <brad.king@kitware.com> | 2012-11-13 19:31:49 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-11-13 19:31:49 (GMT) |
commit | 87b8487d149ac4fcf081bee6871f4f04a096b0b6 (patch) | |
tree | cddd5300f1e1f5ab35b887918bc2bb9f01d356c5 /Source | |
parent | 9d10ae5e522b566736ee5ad71422cf1222fd16b5 (diff) | |
parent | 1acc689665f1420d01bd5325acd15b1903703647 (diff) | |
download | CMake-87b8487d149ac4fcf081bee6871f4f04a096b0b6.zip CMake-87b8487d149ac4fcf081bee6871f4f04a096b0b6.tar.gz CMake-87b8487d149ac4fcf081bee6871f4f04a096b0b6.tar.bz2 |
Merge topic 'update-KWSys'
1acc689 Merge branch 'upstream-kwsys' into update-KWSys
4cf44d3 KWSys 2012-11-08 (3b17de34)
Diffstat (limited to 'Source')
-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'}; |