summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filelock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 3e34514fef8..3b65d127de9 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -180,7 +180,7 @@ get_boot_time ()
sprintf (cmd_string, "%s.%d", WTMP_FILE, counter);
tempname = build_string (cmd_string);
- if (! NILP (Ffile_exists_p (filename)))
+ if (! NILP (Ffile_exists_p (tempname)))
filename = tempname;
else
{