X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fprune.c;h=b99b635e44f6145395b5c761505099c0a0f5b6cc;hb=9eefd8ae8a955f470d931c13b8711d98f4e9d56e;hp=58d7cb83240ecef7ab3ff82f3aa92959ec7a62fe;hpb=c17ff2a36160ae51a1cefa9fe8f067dbeb33e884;p=git.git diff --git a/builtin/prune.c b/builtin/prune.c index 58d7cb832..b99b635e4 100644 --- a/builtin/prune.c +++ b/builtin/prune.c @@ -85,9 +85,9 @@ static int prune_dir(int i, char *path) } fprintf(stderr, "bad sha1 file: %s/%s\n", path, de->d_name); } + closedir(dir); if (!show_only) rmdir(path); - closedir(dir); return 0; }