summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorAlan Wu <alanwu@ruby-lang.org>2022-11-18 19:42:24 -0500
committerAlan Wu <alanwu@ruby-lang.org>2022-11-18 19:42:24 -0500
commit5c505f4a48cafd83493ce2744373bd33361ab9f1 (patch)
treea1b1394341a97e4804869186e8d1245b6a5eaa6a /load.c
parent7f269a3c2d19e28d493a492748cd998d4cd43c89 (diff)
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.
Diffstat (limited to 'load.c')
-rw-r--r--load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/load.c b/load.c
index 0e75c1ab83..5900a6af8e 100644
--- a/load.c
+++ b/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;
}