merges r20869 from trunk into ruby_1_9_1.

* ruby.c (process_options): get rid of warning on DOSISH.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2008-12-19 12:11:53 +00:00
parent 37a5e02475
commit d82eb1a48b
2 changed files with 5 additions and 1 deletions

2
ruby.c
View file

@ -1259,7 +1259,7 @@ process_options(VALUE arg)
opt->script_name = rb_str_new_cstr(opt->script);
opt->script = RSTRING_PTR(opt->script_name);
#if defined DOSISH || defined __CYGWIN__
translate_char(opt->script, '\\', '/');
translate_char(RSTRING_PTR(opt->script_name), '\\', '/');
#endif
rb_obj_freeze(opt->script_name);