diff options
author | Alan Wu <[email protected]> | 2022-11-18 19:42:24 -0500 |
---|---|---|
committer | Alan Wu <[email protected]> | 2022-11-18 19:42:24 -0500 |
commit | 5c505f4a48cafd83493ce2744373bd33361ab9f1 () | |
tree | a1b1394341a97e4804869186e8d1245b6a5eaa6a /load.c | |
parent | 7f269a3c2d19e28d493a492748cd998d4cd43c89 (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.
-rw-r--r-- | load.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; ftptr = RSTRING_PTR(tmp); return rb_feature_p(vm, ftptr, 0, FALSE, TRUE, 0); default: if (ft) { - goto statically_linked; } /* 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: if (loading) *path = rb_filesystem_str_new_cstr(loading); return ft; } |