ruby-changes:62510
From: Koichi <ko1@a...>
Date: Sun, 2 Aug 2020 09:25:10 +0900 (JST)
Subject: [ruby-changes:62510] a1246270c5 (master): remove accidentally introduced debug code
https://git.ruby-lang.org/ruby.git/commit/?id=a1246270c5 From a1246270c55051413ef5830684baff94e1139814 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Sun, 2 Aug 2020 04:51:15 +0900 Subject: remove accidentally introduced debug code diff --git a/debug.c b/debug.c index 1dd7eeb..205e985 100644 --- a/debug.c +++ b/debug.c @@ -292,8 +292,8 @@ setup_debug_log(void) https://github.com/ruby/ruby/blob/trunk/debug.c#L292 const char *log_config = getenv("RUBY_DEBUG_LOG"); if (log_config) { fprintf(stderr, "RUBY_DEBUG_LOG=%s\n", log_config); - unsetenv("RUBY_DEBUG_LOG"); - if (strcmp(log_config, "mem") == 0) { + + if (strcmp(log_config, "mem") == 0) { debug_log.mem = (char *)malloc(MAX_DEBUG_LOG * MAX_DEBUG_LOG_MESSAGE_LEN); if (debug_log.mem == NULL) { fprintf(stderr, "setup_debug_log failed (can't allocate memory)\n"); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/