summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-17 08:39:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-17 08:39:33 +0000
commita472b91a4a8bcce3308a85fe81ee982e520e3d5d (patch)
tree17efa6ca202f0e30b15483b6e58d2836e9808524
parenta5bef8dbc5df71e34369d1bf1753f233f44f5f1e (diff)
downloadruby-a472b91a4a8bcce3308a85fe81ee982e520e3d5d.tar.gz
ruby-a472b91a4a8bcce3308a85fe81ee982e520e3d5d.tar.xz
ruby-a472b91a4a8bcce3308a85fe81ee982e520e3d5d.zip
* ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ruby.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 028d4d2d9..4f505920a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/ruby.c b/ruby.c
index 653944b61..97d5d38a5 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)