aboutsummaryrefslogtreecommitdiffstats
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 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)