summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-11-13 19:31:49 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-11-13 19:31:49 (GMT)
commit87b8487d149ac4fcf081bee6871f4f04a096b0b6 (patch)
treecddd5300f1e1f5ab35b887918bc2bb9f01d356c5 /Source
parent9d10ae5e522b566736ee5ad71422cf1222fd16b5 (diff)
parent1acc689665f1420d01bd5325acd15b1903703647 (diff)
downloadCMake-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.cxx2
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'};