lockfile: change lock_file::filename into a strbuf
[gitweb.git] / builtin / reflog.c
index e8a8fb13b9ffc8d3276048131e33e9874bc3bdea..7c78b15c149bb61d2e572fdfeda1c65bf08f8806 100644 (file)
@@ -431,7 +431,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused,
                         write_str_in_full(lock->lock_fd, "\n") != 1 ||
                         close_ref(lock) < 0)) {
                        status |= error("Couldn't write %s",
-                               lock->lk->filename);
+                                       lock->lk->filename.buf);
                        unlink(newlog_path);
                } else if (rename(newlog_path, log_file)) {
                        status |= error("cannot rename %s to %s",