From ff5935f7ef0ca40b5e7c5263a85a05a876fe88a2 Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Tue, 23 Sep 2014 16:08:34 -0400 Subject: Attempt to fix md5 issue with backups thanks @bigbiff for the suggestion Change-Id: Ie9b55537b7fa300461b015d2b9523d4250e755a9 --- partition.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/partition.cpp b/partition.cpp index 00f84a128..31a3f8fae 100644 --- a/partition.cpp +++ b/partition.cpp @@ -1327,6 +1327,8 @@ bool TWPartition::Check_MD5(string restore_folder) { int index = 0; twrpDigest md5sum; + sync(); + memset(split_filename, 0, sizeof(split_filename)); Full_Filename = restore_folder + "/" + Backup_FileName; if (!TWFunc::Path_Exists(Full_Filename)) { -- cgit v1.2.3