mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
20000105
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ada9b8b5a
commit
76f0202393
26 changed files with 191 additions and 182 deletions
5
ruby.c
5
ruby.c
|
@ -392,7 +392,10 @@ proc_options(argcp, argvp)
|
|||
s = argv[1];
|
||||
argc--,argv++;
|
||||
}
|
||||
if (*s && chdir(s) < 0) {
|
||||
if (!s || !*s) {
|
||||
rb_fatal("Can't chdir");
|
||||
}
|
||||
if (chdir(s) < 0) {
|
||||
rb_fatal("Can't chdir to %s", s);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue