diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-05 21:29:29 (GMT) |
---|---|---|
committer | Peter Kuemmel <syntheticpp@gmx.net> | 2012-06-05 21:29:29 (GMT) |
commit | 0266c9bd1979b1136b33b4ca281eca00925e24cb (patch) | |
tree | 6ddc78fb7202d553935f180e8dfbd177a6350c85 /Source | |
parent | 5aab7f90f1fe96611eee6b0c9d12c6bb1030d23a (diff) | |
download | CMake-0266c9bd1979b1136b33b4ca281eca00925e24cb.zip CMake-0266c9bd1979b1136b33b4ca281eca00925e24cb.tar.gz CMake-0266c9bd1979b1136b33b4ca281eca00925e24cb.tar.bz2 |
Ninja: check for valid pointer
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 6717c3f..a91aa15 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -449,8 +449,8 @@ void cmGlobalNinjaGenerator } // check for mingw - std::string cc = mf->GetDefinition("CMAKE_C_COMPILER"); - if(cc.find("gcc.exe") != std::string::npos) + const char* cc = mf->GetDefinition("CMAKE_C_COMPILER"); + if(cc && std::string(cc).find("gcc.exe") != std::string::npos) { UsingMinGW = true; } |