From 92d6f938a9a9c09d8c875214529242072a9dea4d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 19 Apr 2013 19:40:38 +0200 Subject: [PATCH] Fix some issues with the last stats.cpp fix. --- stats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.cpp b/stats.cpp index 4e82d7f..b2bca75 100644 --- a/stats.cpp +++ b/stats.cpp @@ -77,10 +77,10 @@ void StatsThread::do_work() } if (rename(filename, stats_file.c_str()) == -1) { + log_perror("rename"); if (unlink(filename) == -1) { log_perror(filename); } - unlink(filename); } free(filename); -- 2.39.2