mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Take a const char * for the "z" specifier of mrb_get_args()
This commit is contained in:
@@ -241,7 +241,7 @@ mrb_file_dirname(mrb_state *mrb, mrb_value klass)
|
||||
static mrb_value
|
||||
mrb_file_basename(mrb_state *mrb, mrb_value klass)
|
||||
{
|
||||
char *path;
|
||||
const char *path;
|
||||
const char *suffix = NULL;
|
||||
|
||||
mrb_get_args(mrb, "z|z", &path, &suffix);
|
||||
|
||||
Reference in New Issue
Block a user