summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-02-07 09:18:57 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2007-02-07 09:18:57 -0800
commitfcee5a145d5a9e27afa8086c54e8f718a4a8f1cc (patch)
tree43d1597c8f4075a96083ff3bfa5d4ee35f251567 /fast-import.c
parentMerge branch 'master' of git://repo.or.cz/git/fastimport (diff)
downloadtgif-fcee5a145d5a9e27afa8086c54e8f718a4a8f1cc.tar.xz
for-each-reflog: fix case for empty log directory
When we remove the last reflog in a directory, opendir() would succeed and we would iterate over its dirents, expecting retval to be initialized to zero and setting it to non-zero only upon seeing an error. If the directory is empty, oops!, we do not have anybody that touches retval. The problem is because we initialize retval to errno even on success from opendir(), which would leave the errno unmolested. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fast-import.c')
0 files changed, 0 insertions, 0 deletions