diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-03 15:28:16 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-03 15:28:16 -0800 |
commit | 00764406d78eb223b41536ad011b0f31735d532c (patch) | |
tree | 93ddb8a6395b29208b73db2c60214a25745cf86d /builtin_set.cpp | |
parent | 3ead99b0883c49d465a90a6746409003d7224190 (diff) |
Fix to preserve errno across certain calls to stop printing EOVERFLOW messages in weird places
Diffstat (limited to 'builtin_set.cpp')
-rw-r--r-- | builtin_set.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin_set.cpp b/builtin_set.cpp index a29696be..7eec8eb4 100644 --- a/builtin_set.cpp +++ b/builtin_set.cpp @@ -74,7 +74,7 @@ static int my_env_set( const wchar_t *key, wcstring_list_t &val, int scope ) int show_hint = 0; struct stat buff; - const wchar_t *dir = val[ i ].c_str(); + const wchar_t *dir = val[i].c_str(); if( wstat( dir, &buff ) ) { @@ -91,7 +91,6 @@ static int my_env_set( const wchar_t *key, wcstring_list_t &val, int scope ) if( error ) { const wchar_t *colon; - append_format(stderr_buffer, _(BUILTIN_SET_PATH_ERROR), L"set", dir, key); colon = wcschr( dir, L':' ); |