diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c index 3a79ff8d7..3545ab1e7 100644 --- a/mrbgems/mruby-io/src/file.c +++ b/mrbgems/mruby-io/src/file.c @@ -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); } }