[cmake-commits] hoffman committed cmake.cxx 1.267 1.268
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 3 11:55:57 EDT 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv18359
Modified Files:
cmake.cxx
Log Message:
ENH: do not allow null pointer access
Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.267
retrieving revision 1.268
diff -u -d -r1.267 -r1.268
--- cmake.cxx 7 Aug 2006 21:22:58 -0000 1.267
+++ cmake.cxx 3 Oct 2006 15:55:55 -0000 1.268
@@ -1331,6 +1331,11 @@
void cmake::SetGlobalGenerator(cmGlobalGenerator *gg)
{
+ if(!gg)
+ {
+ cmSystemTools::Error("Error SetGlobalGenerator called with null");
+ return;
+ }
// delete the old generator
if (this->GlobalGenerator)
{
More information about the Cmake-commits
mailing list