[前][次][番号順一覧][スレッド一覧]

ruby-changes:26857

From: nobu <ko1@a...>
Date: Wed, 23 Jan 2013 16:29:28 +0900 (JST)
Subject: [ruby-changes:26857] nobu:r38909 (trunk): win32.c: missing initialization

nobu	2013-01-23 16:29:15 +0900 (Wed, 23 Jan 2013)

  New Revision: 38909

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38909

  Log:
    win32.c: missing initialization
    
    * win32/win32.c (rb_w32_spawn, rb_w32_aspawn_flags): fix missing
      initialization.  pointed out by phasis68 (Heesob Park) at
      [ruby-core:51579].  [Bug #7721]

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38908)
+++ ChangeLog	(revision 38909)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jan 23 16:29:09 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* win32/win32.c (rb_w32_spawn, rb_w32_aspawn_flags): fix missing
+	  initialization.  pointed out by phasis68 (Heesob Park) at
+	  [ruby-core:51579].  [Bug #7721]
+
 Wed Jan 23 16:18:04 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/mkmf.rb (MakeMakefile#try_constant): fix for large unsigned.
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 38908)
+++ win32/win32.c	(revision 38909)
@@ -1184,7 +1184,7 @@ rb_w32_spawn(int mode, const char *cmd, https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L1184
     const char *shell = NULL;
     WCHAR *wcmd = NULL, *wshell = NULL;
     int e = 0;
-    rb_pid_t ret;
+    rb_pid_t ret = -1;
     VALUE v = 0;
     VALUE v2 = 0;
 
@@ -1293,7 +1293,7 @@ rb_w32_aspawn_flags(int mode, const char https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L1293
     char *cmd, fbuf[MAXPATHLEN];
     WCHAR *wcmd = NULL, *wprog = NULL;
     int e = 0;
-    rb_pid_t ret;
+    rb_pid_t ret = -1;
     VALUE v = 0;
 
     if (check_spawn_mode(mode)) return -1;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]