mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-io (mrb_file_basename): fixed a silly mistake
This commit is contained in:
@@ -255,7 +255,7 @@ mrb_file_basename(mrb_state *mrb, mrb_value klass)
|
||||
path[ridx] = '\0';
|
||||
ridx--;
|
||||
}
|
||||
if (ridx == 0 && path[0] == "/") {
|
||||
if (ridx == 0 && path[0] == '/') {
|
||||
return mrb_str_new_cstr(mrb, path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user