mirror of
https://github.com/reactos/CMake.git
synced 2025-02-04 02:47:29 +00:00
ENH: do not allow null pointer access
This commit is contained in:
parent
9c3b654991
commit
9c4302f79e
@ -1331,6 +1331,11 @@ void cmake::SetHomeOutputDirectory(const char* lib)
|
||||
|
||||
void cmake::SetGlobalGenerator(cmGlobalGenerator *gg)
|
||||
{
|
||||
if(!gg)
|
||||
{
|
||||
cmSystemTools::Error("Error SetGlobalGenerator called with null");
|
||||
return;
|
||||
}
|
||||
// delete the old generator
|
||||
if (this->GlobalGenerator)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user