msvcp90: Initialize state in mb_to_wc.

This commit is contained in:
Daniel Lehman 2012-10-02 00:04:22 -07:00 committed by Alexandre Julliard
parent c152c54084
commit 650ccf598e
1 changed files with 1 additions and 1 deletions

View File

@ -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;