From a472b91a4a8bcce3308a85fe81ee982e520e3d5d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 17 Oct 2007 08:39:33 +0000 Subject: * 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 --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.c') 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) -- cgit