From ae7ea35916567109103a7b585272f107e15ad8ad Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 17 Oct 2007 08:39:33 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ ruby.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 028d4d2d9f..4f505920a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Oct 17 17:39:31 2007 Nobuyoshi Nakada + + * ruby.c (proc_options): fixed reversed condition. [ruby-core:12722] + Wed Oct 17 13:54:28 2007 Yukihiro Matsumoto * re.c (rb_reg_s_union): the last check was not complete. diff --git a/ruby.c b/ruby.c index 653944b61d..97d5d38a56 100644 --- a/ruby.c +++ b/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)