diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 28662a9..c05b59f 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1284,12 +1284,7 @@ bool cmSystemTools::UnsetEnv(const char* value) { #ifdef _WIN32 std::string var = value; - std::string::size_type pos = var.find("="); - if ( pos == var.npos ) - { - continue; - } - var = var.substr(0, pos+1); + var += "="; return cmSystemTools::PutEnv(var.c_str()); #else return unsetenv(value) == 0; |