fread does not return negative on error
commit6651c3f706cc47d8055ab43f9f7907202d10655d
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 22 Jun 2009 16:42:33 +0000 (22 18:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jun 2009 23:57:15 +0000 (23 16:57 -0700)
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 <mingo@elte.hu>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strbuf.c