We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fde5943 commit dec2235Copy full SHA for dec2235
src/fread.c
@@ -237,7 +237,7 @@ static inline void skip_white(const char **pch) {
237
// skip space so long as sep isn't space and skip tab so long as sep isn't tab
238
// always skip any \0 (NUL) that occur before end of file, #3400
239
const char *ch = *pch;
240
- if (whiteChar==0) { // whiteChar==0 means skip both ' ' and '\t'; sep is neither ' ' nor '\t'.
+ if (whiteChar=='\0') { // whiteChar==0 means skip both ' ' and '\t'; sep is neither ' ' nor '\t'.
241
while (*ch==' ' || *ch=='\t' || (*ch=='\0' && ch<eof)) ch++;
242
} else {
243
while (*ch==whiteChar || (*ch=='\0' && ch<eof)) ch++; // sep is ' ' or '\t' so just skip the other one.
0 commit comments