From: Steinar H. Gunderson Date: Fri, 19 Apr 2013 17:40:38 +0000 (+0200) Subject: Fix some issues with the last stats.cpp fix. X-Git-Tag: 1.0.0~67 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=92d6f938a9a9c09d8c875214529242072a9dea4d Fix some issues with the last stats.cpp fix. --- 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);