* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.

* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
This commit is contained in:
Corinna Vinschen 2008-02-11 16:39:06 +00:00
parent 8eb981a37c
commit 6542ddc3be
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-11 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
2008-02-10 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (DLL_OFILES): Add ntea.o.

View File

@ -857,7 +857,7 @@ dll_crt0_1 (void *)
if (!__argc)
{
PWCHAR wline = GetCommandLineW ();
size_t size = sys_wcstombs (NULL, size, wline);
size_t size = sys_wcstombs (NULL, 0, wline);
char *line = (char *) alloca (size);
sys_wcstombs (line, size, wline);

View File

@ -236,7 +236,7 @@ is_cp_multibyte (UINT cp)
const unsigned char *
next_char (UINT cp, const unsigned char *str, const unsigned char *end)
{
const unsigned char *ret;
const unsigned char *ret = NULL;
if (str >= end)
return end;