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:
Yukihiro "Matz" Matsumoto
2025-10-16 08:00:06 +09:00
parent f81cadfed5
commit 74a5c840f8
+1 -1
View File
@@ -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;