aboutsummaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 82f99b5..c0c1051 100644
--- a/log.c
+++ b/log.c
@@ -35,7 +35,7 @@ extern char logfile[PATH_MAX];
int logcleanup()
{
int status = 0;
- if((access(logfile, W_OK)) == 0)
+ if((status = access(logfile, W_OK)) == 0)
{
status = unlink(logfile);
}