Skip to content

Commit

Permalink
remove accidentally introduced debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1 committed Aug 1, 2020
1 parent b4f58ea commit a124627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a124627

Please sign in to comment.