diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-21 20:47:03 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-21 20:47:03 -0700 |
commit | a027566295f7ddc6f93ae73bf64790008b77fc2f (patch) | |
tree | c0c459c6ccdfd53b397561bde6d3d6abf8c5c716 /builtin.cpp | |
parent | e1f623f548c0e6241642db96c522c411cd84d755 (diff) |
No need for mbstate_t to be static
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin.cpp b/builtin.cpp index e7c49285..1927b5ca 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -2605,8 +2605,7 @@ static int builtin_read(parser_t &parser, wchar_t **argv) int finished=0; wchar_t res=0; - static mbstate_t state; - memset(&state, '\0', sizeof(state)); + mbstate_t state = {}; while (!finished) { |