diff options
author | Jeff King <peff@peff.net> | 2018-02-23 02:00:54 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-23 14:20:22 -0800 |
commit | 79f0ba1547a34b3a9791491f9bbfe4048026f373 (patch) | |
tree | 8b4e50bfcbf061ad5d5ac7726f54974b5e6a974f /send-pack.c | |
parent | Git 2.16.2 (diff) | |
download | tgif-79f0ba1547a34b3a9791491f9bbfe4048026f373.tar.xz |
strbuf_read_file(): preserve errno across close() call
If we encounter a read error, the user may want to report it
by looking at errno. However, our close() call may clobber
errno, leading to confusing results. Let's save and restore
it in the error case.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.c')
0 files changed, 0 insertions, 0 deletions