diff options
author | Erik Faye-Lund <kusmabite@gmail.com> | 2010-11-23 20:53:08 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-23 16:08:01 -0800 |
commit | e93368d26ebcf69698b8454afb85c9c84bd54363 (patch) | |
tree | 5d49188551adc03bf69e0053cb4883d6afee3050 /builtin/rm.c | |
parent | clean: remove redundant variable baselen (diff) | |
download | tgif-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 'builtin/rm.c')
0 files changed, 0 insertions, 0 deletions