diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2013-02-12 13:50:43 +0100 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2013-02-12 13:50:43 +0100 |
commit | 694ab455cd3c9dbe17e0e3be9ba80ad7c4443dc1 (patch) | |
tree | 1a60a8e83efe74ff74ded87714c0efec697c550a /env.cpp | |
parent | 46edc07ae47b563c00edde4945337d836f3f00b0 (diff) |
Fixed broken export_func
Diffstat (limited to 'env.cpp')
-rw-r--r-- | env.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 */ |