summaryrefslogtreecommitdiff
path: root/credential-store.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-10-01 12:28:40 +0200
committerJunio C Hamano <gitster@pobox.com>2014-10-01 13:53:54 -0700
commit4d423a3e62c7ab0b04c4bd84995c32daff3b24c3 (patch)
tree7d8744732c898c665086d784bd2fce28cd8248d5 /credential-store.c
parentec38b4e482e96e62762452cab5714e55abdb48c3 (diff)
downloadgit-4d423a3e62c7ab0b04c4bd84995c32daff3b24c3.tar.gz
hold_lock_file_for_append(): restore errno before returning
Callers who don't pass LOCK_DIE_ON_ERROR might want to examine errno to see what went wrong, so restore errno before returning. In fact this function only has one caller, add_to_alternates_file(), and it *does* use LOCK_DIE_ON_ERROR, but, you know, think of future generations. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential-store.c')
0 files changed, 0 insertions, 0 deletions