msvcp90: Initialize state in mb_to_wc.
This commit is contained in:
parent
c152c54084
commit
650ccf598e
|
@ -4397,7 +4397,7 @@ num_get* num_get_short_use_facet(const locale *loc)
|
|||
|
||||
static inline wchar_t mb_to_wc(char ch, const _Cvtvec *cvt)
|
||||
{
|
||||
int state;
|
||||
int state = 0;
|
||||
wchar_t ret;
|
||||
|
||||
return _Mbrtowc(&ret, &ch, 1, &state, cvt) == 1 ? ret : 0;
|
||||
|
|
Loading…
Reference in New Issue