summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index f297c2b0a8..113e895bb2 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1803,7 +1803,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
opt->script = "-";
}
else if (opt->do_search) {
- char *path = getenv("RUBYPATH");
+ const char *path = getenv("RUBYPATH");
opt->script = 0;
if (path) {