From ba049fcaf8154b22d58c4d8d26a810b1330c6edc Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 11 Sep 2020 18:59:04 +0200 Subject: [PATCH] tweaks: avoid a compiler warning when compiling with more than -O1 --- src/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 4e0f3fbf..14c31716 100644 --- a/src/files.c +++ b/src/files.c @@ -1556,10 +1556,11 @@ int copy_file(FILE *inn, FILE *out, bool close_out) bool make_backup_of(char *realname) { FILE *original = NULL, *backup_file = NULL; - int creation_flags, descriptor, verdict; static struct timespec filetime[2]; + int creation_flags, descriptor; bool second_attempt = FALSE; char *backupname = NULL; + int verdict = 0; /* Remember the original file's access and modification times. */ filetime[0].tv_sec = openfile->statinfo->st_atime;