summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-08-02 04:51:15 +0900
committerKoichi Sasada <ko1@atdot.net>2020-08-02 04:51:26 +0900
commita1246270c55051413ef5830684baff94e1139814 (patch)
treea4ff62f70bd77e80074b2abd06b93317e5295fb6
parentb4f58ea3008e3e86bdc931407c68c6e0497ef078 (diff)
remove accidentally introduced debug code
-rw-r--r--debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug.c b/debug.c
index 1dd7eebbb6..205e9854fb 100644
--- a/debug.c
+++ b/debug.c
@@ -292,8 +292,8 @@ setup_debug_log(void)
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");