diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2013-08-06 18:32:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-08-08 17:31:10 (GMT) |
commit | b86e37c84f9691cc122e838b653ae0f441c4d1e2 (patch) | |
tree | 7c9860be87596e48c63cfd0bd5eb15f3dac82039 /Source/cmVariableWatchCommand.cxx | |
parent | f9bb20fe2bf1d9154a3244579ea84400912473b4 (diff) | |
download | CMake-b86e37c84f9691cc122e838b653ae0f441c4d1e2.zip CMake-b86e37c84f9691cc122e838b653ae0f441c4d1e2.tar.gz CMake-b86e37c84f9691cc122e838b653ae0f441c4d1e2.tar.bz2 |
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.
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r-- | Source/cmVariableWatchCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx index 3b75ade..4eff19e 100644 --- a/Source/cmVariableWatchCommand.cxx +++ b/Source/cmVariableWatchCommand.cxx @@ -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()); } |