mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-io: fix const qualifier warning in path_gethome
home variable should be const char* to match mrb_io_hal_gethome return type. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -520,7 +520,7 @@ path_gethome(mrb_state *mrb, const char **pathp)
|
||||
{
|
||||
mrb_assert(pathp && *pathp && **pathp == '~');
|
||||
|
||||
char *home;
|
||||
const char *home;
|
||||
mrb_value path;
|
||||
|
||||
const char *username = ++*pathp;
|
||||
|
||||
Reference in New Issue
Block a user