Skip to content

Commit dec2235

Browse files
committed
changed 0 to '\0' to be consistent with other code
1 parent fde5943 commit dec2235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static inline void skip_white(const char **pch) {
237237
// skip space so long as sep isn't space and skip tab so long as sep isn't tab
238238
// always skip any \0 (NUL) that occur before end of file, #3400
239239
const char *ch = *pch;
240-
if (whiteChar==0) { // whiteChar==0 means skip both ' ' and '\t'; sep is neither ' ' nor '\t'.
240+
if (whiteChar=='\0') { // whiteChar==0 means skip both ' ' and '\t'; sep is neither ' ' nor '\t'.
241241
while (*ch==' ' || *ch=='\t' || (*ch=='\0' && ch<eof)) ch++;
242242
} else {
243243
while (*ch==whiteChar || (*ch=='\0' && ch<eof)) ch++; // sep is ' ' or '\t' so just skip the other one.

0 commit comments

Comments
 (0)