summaryrefslogtreecommitdiff
path: root/ruby.c
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
commitae7ea35916567109103a7b585272f107e15ad8ad (patch)
tree17efa6ca202f0e30b15483b6e58d2836e9808524 /ruby.c
parent05737c35002d482382b72910d9bd792b794c8121 (diff)
* 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
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
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)