aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/env.cpp b/env.cpp
index 370a636a..4787827e 100644
--- a/env.cpp
+++ b/env.cpp
@@ -811,7 +811,7 @@ int env_set(const wcstring &key, const wchar_t *val, int var_mode)
if (var_mode & ENV_UNIVERSAL)
{
- int exportv = 0;
+ int exportv;
if (!(var_mode & ENV_EXPORT) &&
!(var_mode & ENV_UNEXPORT))
@@ -868,12 +868,12 @@ int env_set(const wcstring &key, const wchar_t *val, int var_mode)
if (env_universal_get(key))
{
- int exportv = 0;
+ int exportv;
if (!(var_mode & ENV_EXPORT) &&
!(var_mode & ENV_UNEXPORT))
{
- env_universal_get_export(key);
+ exportv = env_universal_get_export(key);
}
else
{