mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
variable_watch: Check newValue for NULL
On read access, newValue can be NULL since there is no new value, so use the empty string instead.
This commit is contained in:
1 parent
f9bb20fe2b
commit
b86e37c84f
1 file changed
+1
-1
@@ -80,7 +80,7 @@ static void cmVariableWatchCommandVariableAccessed(
|
||||
{
|
||||
cmOStringStream msg;
|
||||
msg << "Variable \"" << variable.c_str() << "\" was accessed using "
|
||||
<< accessString << " with value \"" << newValue << "\".";
|
||||
<< accessString << " with value \"" << (newValue?newValue:"") << "\".";
|
||||
makefile->IssueMessage(cmake::LOG, msg.str());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user