OSDN Git Service

* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
authorcorinna <corinna>
Mon, 11 Feb 2008 16:39:06 +0000 (16:39 +0000)
committercorinna <corinna>
Mon, 11 Feb 2008 16:39:06 +0000 (16:39 +0000)
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.

winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc
winsup/cygwin/miscfuncs.cc

index f82fcf8..bd7761f 100644 (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.
index 1c5464f..0398388 100644 (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);
 
index aa922d7..e1b3a91 100644 (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;