summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-08-08 17:44:25 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-08-08 17:44:25 (GMT)
commit8f1aaf28c13094f21a835a5b0fe47f7813179126 (patch)
treeb1fc78ac133d0995ca71946247bdd32c6bb41c5a /Source/cmLocalGenerator.h
parentc3a22c011d0febb1843f7848eb818b23bb567ac1 (diff)
downloadCMake-8f1aaf28c13094f21a835a5b0fe47f7813179126.zip
CMake-8f1aaf28c13094f21a835a5b0fe47f7813179126.tar.gz
CMake-8f1aaf28c13094f21a835a5b0fe47f7813179126.tar.bz2
ENH: make sure RuleVariable struct is initialized correctly, also make sure custom command targets do not crash cmake
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 03df6cb..6a49375 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -181,20 +181,7 @@ public:
{
RuleVariables()
{
- this->Language= 0;
- this->Objects= 0;
- this->Target= 0;
- this->LinkLibraries= 0;
- this->Source= 0;
- this->AssemblySource = 0;
- this->PreprocessedSource = 0;
- this->Object= 0;
- this->ObjectDir= 0;
- this->Flags= 0;
- this->ObjectsQuoted= 0;
- this->TargetSOName= 0;
- this->TargetInstallNameDir = 0;
- this->LinkFlags= 0;
+ memset(this, 0, sizeof(*this));
}
const char* TargetPDB;
const char* Language;