summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--load.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/load.c b/load.c
index e8deb4077a..fdc329cd01 100644
--- a/load.c
+++ b/load.c
@@ -1049,12 +1049,10 @@ require_internal(rb_execution_context_t *ec, VALUE fname, int exception)
if ((state = EC_EXEC_TAG()) == TAG_NONE) {
long handle;
int found;
- volatile VALUE found_path;
RUBY_DTRACE_HOOK(FIND_REQUIRE_ENTRY, RSTRING_PTR(fname));
- found = search_required(path, &found_path, rb_feature_p);
+ found = search_required(path, &path, rb_feature_p);
RUBY_DTRACE_HOOK(FIND_REQUIRE_RETURN, RSTRING_PTR(fname));
- path = found_path;
if (found) {
if (!path || !(ftptr = load_lock(RSTRING_PTR(path)))) {