No need for mbstate_t to be static
This commit is contained in:
parent
e1f623f548
commit
a027566295
@ -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)
|
||||
{
|
||||
|
@ -243,7 +243,7 @@ wchar_t input_common_readch(int timed)
|
||||
}
|
||||
|
||||
wchar_t res;
|
||||
static mbstate_t state;
|
||||
mbstate_t state = {};
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user