aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-10-08 09:51:49 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-10-08 09:53:29 +0800
commit14724401ff82eeb569df8b9b291b4670e80c35d8 (patch)
tree88e40420dc8a07138b9ea5ae50053b2e6d79e789 /env.cpp
parent72f5ab3186b5e8baa246a90e6012feb9e2e10e6a (diff)
env.cpp: correctly check variable_can_be_array
Closes #1746.
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 167e0a36..814ae303 100644
--- a/env.cpp
+++ b/env.cpp
@@ -487,7 +487,7 @@ void env_init(const struct config_paths_t *paths /* or NULL */)
wcstring key = key_and_val.substr(0, eql);
if (is_read_only(key) || is_electric(key)) continue;
wcstring val = key_and_val.substr(eql + 1);
- if (variable_can_be_array(val))
+ if (variable_can_be_array(key))
{
std::replace(val.begin(), val.end(), L':', ARRAY_SEP);
}