aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-06-13 15:15:11 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-06-13 15:15:11 -0700
commit735195e8ea99d747e92a71b9b0233948e5de60fa (patch)
treee4229b05ee3596bd6ed50747889228398e5b18ba /env.cpp
parent17c2d76c5ec935ab320badee834260bd3a5a4340 (diff)
Teach env_universal_remove to directly report whether the variable was
successfully removed.
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.cpp b/env.cpp
index 21e0adee..106af3b4 100644
--- a/env.cpp
+++ b/env.cpp
@@ -917,7 +917,7 @@ int env_remove(const wcstring &key, int var_mode)
!(var_mode & ENV_GLOBAL) &&
!(var_mode & ENV_LOCAL))
{
- erased = ! env_universal_remove(key.c_str());
+ erased = env_universal_remove(key);
}
react_to_variable_change(key);