mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
05737c3500
commit
ae7ea35916
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Oct 17 17:39:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]
|
||||
|
||||
Wed Oct 17 13:54:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_s_union): the last check was not complete.
|
||||
|
|
2
ruby.c
2
ruby.c
|
@ -785,7 +785,7 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
|
|||
}
|
||||
}
|
||||
else if (strncmp("encoding=", s, 9) == 0) {
|
||||
if (*(s += 9)) goto noencoding;
|
||||
if (!*(s += 9)) goto noencoding;
|
||||
goto encoding;
|
||||
}
|
||||
else if (strcmp("version", s) == 0)
|
||||
|
|
Loading…
Reference in a new issue