Duplicate header name only if found

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-12-08 06:52:21 +00:00
parent 0b343021da
commit f6a38e180e
1 changed files with 3 additions and 3 deletions

6
mjit.c
View File

@ -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