summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-03-17 13:18:33 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2007-03-17 13:18:33 -0400
commit6f65bbca4e8a5b426405d16a06bab760d8864344 (patch)
treeabfa1f02915d9aad6b8e5c671bffcbc76f23d1c5
parentba89db4bd21858b3ca870f148bbde3d96025d26e (diff)
downloadcmake-6f65bbca4e8a5b426405d16a06bab760d8864344.tar.gz
ENH: remove seg fault I hope
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index 86351b5a1f..3bf197973f 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -427,7 +427,7 @@ void cmLocalVisualStudio6Generator
// force a C++ file type
compileFlags += " /TP ";
}
- else if(strcmp(lang, "C") == 0)
+ else if(lang && strcmp(lang, "C") == 0)
{
// force to c file type
compileFlags += " /TC ";