mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
BUG: fix null pointer read if def is not defined
This commit is contained in:
parent
f632d20b64
commit
97f50b6e7a
@ -170,7 +170,7 @@ bool cmIfCommand::InitialPass(std::vector<std::string> const& args)
|
||||
cmRegularExpression regEntry(args[2].c_str());
|
||||
|
||||
// check for black line or comment
|
||||
if (!regEntry.find(def))
|
||||
if (def && !regEntry.find(def))
|
||||
{
|
||||
f = new cmIfFunctionBlocker();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user