Rename misleading label
We use this code path when we require the same extension twice, so it's not necessarily about the feature being statically linked. Removing this code when there is no statically linked extensions leads to breakage.
This commit is contained in:
parent
7f269a3c2d
commit
5c505f4a48
6
load.c
6
load.c
@ -1028,13 +1028,13 @@ search_required(rb_vm_t *vm, VALUE fname, volatile VALUE *path, feature_func rb_
|
||||
switch (type) {
|
||||
case 0:
|
||||
if (ft)
|
||||
goto statically_linked;
|
||||
goto feature_present;
|
||||
ftptr = RSTRING_PTR(tmp);
|
||||
return rb_feature_p(vm, ftptr, 0, FALSE, TRUE, 0);
|
||||
|
||||
default:
|
||||
if (ft) {
|
||||
goto statically_linked;
|
||||
goto feature_present;
|
||||
}
|
||||
/* fall through */
|
||||
case 1:
|
||||
@ -1045,7 +1045,7 @@ search_required(rb_vm_t *vm, VALUE fname, volatile VALUE *path, feature_func rb_
|
||||
}
|
||||
return type ? 's' : 'r';
|
||||
|
||||
statically_linked:
|
||||
feature_present:
|
||||
if (loading) *path = rb_filesystem_str_new_cstr(loading);
|
||||
return ft;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user