commit ba049fcaf8154b22d58c4d8d26a810b1330c6edc
parent ba47abb47358b3a5b3865642b51c64ef3ca9975b
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 11 Sep 2020 18:59:04 +0200
tweaks: avoid a compiler warning when compiling with more than -O1
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;