author | Roel Kluin <roel.kluin@gmail.com> | |
Mon, 22 Jun 2009 16:42:33 +0000 (18:42 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 23 Jun 2009 23:57:15 +0000 (16:57 -0700) | ||
commit | 6651c3f706cc47d8055ab43f9f7907202d10655d | |
tree | 88eabb5c4a3431fa8f3489565ace175167232217 | tree | snapshot |
parent | 1ab012cf811abba5745fa0da70db963decd65f21 | commit | diff |
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>
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 | diff | blob | history |