Changeset 4153 for zzuf/trunk


Ignore:
Timestamp:
Dec 20, 2009, 1:25:02 PM (11 years ago)
Author:
Sam Hocevar
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/lib-stream.c

    r4117 r4153  
    813813            { \
    814814                finished = 1; \
    815                 ret = done; \
     815                ret = done ? done : -1; \
    816816            } \
    817817            else \
Note: See TracChangeset for help on using the changeset viewer.