summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
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 006387162b..878829a742 100644
--- a/ruby.c
+++ b/ruby.c
@@ -618,7 +618,7 @@ proc_options(argc, argv)
goto reswitch;
case '-':
- if (!s[1] || s[1] == '\r' && !s[2]) {
+ if (!s[1] || (s[1] == '\r' && !s[2])) {
argc--,argv++;
goto switch_end;
}