From 68e4a053cd749ec9ba539f4eb44b5c089ea031ed Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 18 Jan 2016 22:39:39 +0100 Subject: [PATCH] Remove some warnings without optimizations --- cmdline/scan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmdline/scan.c b/cmdline/scan.c index cf47b603..40e66d22 100644 --- a/cmdline/scan.c +++ b/cmdline/scan.c @@ -879,6 +879,10 @@ static void scan_file(struct snapraid_scan* scan, int is_diff, const char* sub, scan_file_remove(scan, file); /* and continue to insert it again */ + } else { + file_already_present_size = 0; + file_already_present_mtime_sec = 0; + file_already_present_mtime_nsec = 0; } /* refresh the info, to ensure that they are synced, */