Skip to content

Commit f4bf6f9

Browse files
committed
parenthesize
1 parent c5c9422 commit f4bf6f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/spl/spl_directory.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,9 +2130,9 @@ static int is_csv_line_empty(spl_filesystem_object *intern) /* {{{ */
21302130
char *current_line = intern->u.file.current_line;
21312131
size_t current_line_len = intern->u.file.current_line_len;
21322132
return current_line_len == 0
2133-
|| (SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_READ_CSV) && SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_DROP_NEW_LINE)
2134-
&& (current_line_len == 1 && current_line[0] == '\n')
2135-
|| current_line_len == 2 && current_line[0] == '\r' && current_line[1] == '\n');
2133+
|| ((SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_READ_CSV) && SPL_HAS_FLAG(intern->flags, SPL_FILE_OBJECT_DROP_NEW_LINE)
2134+
&& ((current_line_len == 1 && current_line[0] == '\n')
2135+
|| current_line_len == 2 && current_line[0] == '\r' && current_line[1] == '\n')));
21362136
} /* }}} */
21372137

21382138
static int spl_filesystem_file_read_csv(spl_filesystem_object *intern, char delimiter, char enclosure, int escape, zval *return_value) /* {{{ */

0 commit comments

Comments
 (0)