Message ID | d244cc4bb60959b8f3d8711a7aeb434efcc9d2a2.1635287730.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | cb443dfd78addbdd552630a09b24b006b8d7da48 |
Headers | show |
Series | tmp-objdir: fix regressions in core.fsyncobjectfiles=batch | expand |
diff --git a/builtin/prune.c b/builtin/prune.c index 9c72ecf5a58..6b6b0c7b011 100644 --- a/builtin/prune.c +++ b/builtin/prune.c @@ -31,6 +31,7 @@ static int prune_tmp_file(const char *fullpath) if (show_only || verbose) printf("Removing stale temporary directory %s\n", fullpath); if (!show_only) { + strbuf_reset(&remove_dir_buf); strbuf_addstr(&remove_dir_buf, fullpath); remove_dir_recursively(&remove_dir_buf, 0); }