Skip to content

Commit 1db7479

Browse files
committed
Fix segfault of Pathname#split
1 parent e29b49e commit 1db7479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pathname/pathname.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ path_split(VALUE self)
834834
VALUE str = get_strpath(self);
835835
VALUE ary, dirname, basename;
836836
ary = rb_funcall(rb_cFile, id_split, 1, str);
837-
ary = rb_check_array_type(ary);
837+
Check_Type(ary, T_ARRAY);
838838
dirname = rb_ary_entry(ary, 0);
839839
basename = rb_ary_entry(ary, 1);
840840
dirname = rb_class_new_instance(1, &dirname, rb_obj_class(self));

0 commit comments

Comments
 (0)