summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-08 06:52:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-08 06:52:21 +0000
commitf6a38e180e5abc4db445b8e50d698ced71dbea87 (patch)
tree440bbab7d54797d0d28c2a8a95fad553bd0a1e8f /mjit.c
parent0b343021da7a139606c06aec5daa2f6f6097461a (diff)
Duplicate header name only if found
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index 78c50d10d5..aef4bd2fc8 100644
--- a/mjit.c
+++ b/mjit.c
@@ -416,10 +416,10 @@ init_header_filename(void)
verbose(3, "PRELOADENV("PRELOADENV")=%s", getenv(PRELOADENV));
/* assume no other PRELOADENV in test-all */
unsetenv(PRELOADENV);
+ verbose(3, "MJIT_HEADER: %s", hdr);
+ header_file = ruby_strdup(hdr);
+ if (!header_file) return FALSE;
}
- verbose(3, "MJIT_HEADER: %s", hdr);
- header_file = ruby_strdup(hdr);
- if (!header_file) return FALSE;
}
else
#endif