summaryrefslogtreecommitdiffstats
path: root/Source/cmSetCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-09-26 19:21:49 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-09-27 10:08:07 (GMT)
commit77c6a339af39869608dcaccf578a6cdd84d2efaa (patch)
tree201c190261bf51a8933d4444d72faf207f7cd817 /Source/cmSetCommand.cxx
parent732f551187964451e922e0d95dcc21114d109f88 (diff)
downloadCMake-77c6a339af39869608dcaccf578a6cdd84d2efaa.zip
CMake-77c6a339af39869608dcaccf578a6cdd84d2efaa.tar.gz
CMake-77c6a339af39869608dcaccf578a6cdd84d2efaa.tar.bz2
cmSetCommand: Re-use local named variable.
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r--Source/cmSetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx
index ed36dc5..1d70ad6 100644
--- a/Source/cmSetCommand.cxx
+++ b/Source/cmSetCommand.cxx
@@ -59,7 +59,7 @@ bool cmSetCommand
// SET (VAR) // Removes the definition of VAR.
if (args.size() == 1)
{
- this->Makefile->RemoveDefinition(args[0]);
+ this->Makefile->RemoveDefinition(variable);
return true;
}
// SET (VAR PARENT_SCOPE) // Removes the definition of VAR