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

ruby-changes:34452

From: nobu <ko1@a...>
Date: Tue, 24 Jun 2014 07:16:35 +0900 (JST)
Subject: [ruby-changes:34452] nobu:r46533 (trunk): win32.c: unused variable

nobu	2014-06-24 07:16:19 +0900 (Tue, 24 Jun 2014)

  New Revision: 46533

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

  Log:
    win32.c: unused variable
    
    * win32/win32.c (envarea): remove no longer used variable.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 46532)
+++ win32/win32.c	(revision 46533)
@@ -610,7 +610,6 @@ static int NtSocketsInitialized = 0; https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L610
 static st_table *socklist = NULL;
 static st_table *conlist = NULL;
 #define conlist_disabled ((st_table *)-1)
-static char *envarea;
 static char *uenvarea;
 
 /* License: Ruby's */
@@ -660,10 +659,6 @@ exit_handler(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L659
 	st_free_table(conlist);
 	conlist = NULL;
     }
-    if (envarea) {
-	FreeEnvironmentStrings(envarea);
-	envarea = NULL;
-    }
     if (uenvarea) {
 	free(uenvarea);
 	uenvarea = NULL;
@@ -4636,10 +4631,6 @@ w32_getenv(const char *name, UINT cp) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L4631
 	free(uenvarea);
 	uenvarea = NULL;
     }
-    if (envarea) {
-	FreeEnvironmentStrings(envarea);
-	envarea = NULL;
-    }
     wenvarea = GetEnvironmentStringsW();
     if (!wenvarea) {
 	map_errno(GetLastError());

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

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