Browse Source

cmSetCommand: Re-use local named variable.

Stephen Kelly 10 years ago
parent
commit
77c6a339af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmSetCommand.cxx

+ 1 - 1
Source/cmSetCommand.cxx

@@ -59,7 +59,7 @@ bool cmSetCommand
   // SET (VAR) // Removes the definition of VAR.
   // SET (VAR) // Removes the definition of VAR.
   if (args.size() == 1)
   if (args.size() == 1)
     {
     {
-    this->Makefile->RemoveDefinition(args[0]);
+    this->Makefile->RemoveDefinition(variable);
     return true;
     return true;
     }
     }
   // SET (VAR PARENT_SCOPE) // Removes the definition of VAR
   // SET (VAR PARENT_SCOPE) // Removes the definition of VAR