fread does not return negative on error
authorRoel Kluin <redacted>
Mon, 22 Jun 2009 16:42:33 +0000 (18:42 +0200)
committerJunio C Hamano <redacted>
Tue, 23 Jun 2009 23:57:15 +0000 (16:57 -0700)
commit6651c3f706cc47d8055ab43f9f7907202d10655d
tree88eabb5c4a3431fa8f3489565ace175167232217
parent1ab012cf811abba5745fa0da70db963decd65f21
fread does not return negative on error

size_t res cannot be less than 0. fread returns 0 on error.

Reported-by: Ingo Molnar <redacted>
Signed-off-by: Roel Kluin <redacted>
Signed-off-by: Junio C Hamano <redacted>
strbuf.c
git clone https://git.99rst.org/PROJECT