Module: wine Branch: master Commit: 650ccf598e5e6b5d01be22484d8ce184aa0a95de URL: http://source.winehq.org/git/wine.git/?a=commit;h=650ccf598e5e6b5d01be22484d...
Author: Daniel Lehman dlehman@esri.com Date: Tue Oct 2 00:04:22 2012 -0700
msvcp90: Initialize state in mb_to_wc.
---
dlls/msvcp90/locale.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcp90/locale.c b/dlls/msvcp90/locale.c index 010284e..501443c 100644 --- a/dlls/msvcp90/locale.c +++ b/dlls/msvcp90/locale.c @@ -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;