aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2013-02-12 13:50:43 +0100
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2013-02-12 13:50:43 +0100
commit694ab455cd3c9dbe17e0e3be9ba80ad7c4443dc1 (patch)
tree1a60a8e83efe74ff74ded87714c0efec697c550a /env.cpp
parent46edc07ae47b563c00edde4945337d836f3f00b0 (diff)
Fixed broken export_func
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/env.cpp b/env.cpp
index 503d7314..118eeb01 100644
--- a/env.cpp
+++ b/env.cpp
@@ -1422,14 +1422,14 @@ static void export_func(const std::map<wcstring, wcstring> &envs, std::vector<st
std::map<wcstring, wcstring>::const_iterator iter;
for (iter = envs.begin(); iter != envs.end(); ++iter)
{
- std::string ks = wcs2string(iter->first);
- const std::string vs = wcs2string(iter->second);
+ const std::string ks = wcs2string(iter->first);
+ std::string vs = wcs2string(iter->second);
- for (size_t i=0; i < ks.size(); i++)
+ for (size_t i=0; i < vs.size(); i++)
{
- char &kc = ks.at(i);
- if (kc == ARRAY_SEP)
- kc = ':';
+ char &vc = vs.at(i);
+ if (vc == ARRAY_SEP)
+ vc = ':';
}
/* Put a string on the vector */