summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorLibravatar Erik Faye-Lund <kusmabite@gmail.com>2010-11-23 20:53:08 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-11-23 16:08:01 -0800
commite93368d26ebcf69698b8454afb85c9c84bd54363 (patch)
tree5d49188551adc03bf69e0053cb4883d6afee3050 /read-cache.c
parentclean: remove redundant variable baselen (diff)
downloadtgif-e93368d26ebcf69698b8454afb85c9c84bd54363.tar.xz
mingw: do not set errno to 0 on success
Currently do_lstat always sets errno to 0 on success. This incorrectly overwrites previous errors. Fetch the error-code into a temporary variable instead, and assign that to errno on failure. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions