getline() and getdelim() must return -1 if EOF was reached and no bytes

were read.
This commit is contained in:
Sam Hocevar 2009-12-20 12:25:02 +00:00 committed by sam
parent d33737d585
commit 509f293a99

View File

@ -812,7 +812,7 @@ int NEW(fclose)(FILE *fp)
if(chr == EOF) \
{ \
finished = 1; \
ret = done; \
ret = done ? done : -1; \
} \
else \
{ \