summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ruby.c b/ruby.c
index ab08fd8c76..1bc89ad144 100644
--- a/ruby.c
+++ b/ruby.c
@@ -436,8 +436,8 @@ load_file(fname, script)
while (!NIL_P(line = io_gets(f))) {
line_start++;
if (RSTRING(line)->len > 2
- || RSTRING(line)->ptr[0] != '#'
- || RSTRING(line)->ptr[1] != '!') {
+ && RSTRING(line)->ptr[0] == '#'
+ && RSTRING(line)->ptr[1] == '!') {
if (strstr(RSTRING(line)->ptr, "ruby")) {
goto start_read;
}
@@ -453,8 +453,7 @@ load_file(fname, script)
line_start++;
if (RSTRING(line)->len > 2
- || RSTRING(line)->ptr[0] != '#'
- || RSTRING(line)->ptr[1] != '!') {
+ && RSTRING(line)->ptr[0] == '!') {
char *p;