summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5dd5648)
raw | patch | inline | side by side (parent: 5dd5648)
author | Jeff King <peff@peff.net> | |
Thu, 26 May 2011 16:28:44 +0000 (12:28 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 26 May 2011 18:25:13 +0000 (11:25 -0700) |
Otherwise, a negative error return becomes a very large read
value. We catch this in practice because we compare the
expected and actual numbers of bytes (and you are not likely
to be reading (size_t)-1 bytes), but this makes the
correctness a little more obvious.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
value. We catch this in practice because we compare the
expected and actual numbers of bytes (and you are not likely
to be reading (size_t)-1 bytes), but this makes the
correctness a little more obvious.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c | patch | blob | history |