summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2015-02-20 23:58:05 +0100
committerDees Troy <dees_troy@teamw.in>2015-03-05 04:11:44 +0100
commit2b18a53dc8079cff8f583b6597fc8951c3a82018 (patch)
treef5043a44858aa69d55a6b6cbb0cc4691abf3b3bc /partitionmanager.cpp
parentProperly initialize Archive_Current_Size to 0 in twrpTar (diff)
downloadandroid_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.tar
android_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.tar.gz
android_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.tar.bz2
android_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.tar.lz
android_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.tar.xz
android_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.tar.zst
android_bootable_recovery-2b18a53dc8079cff8f583b6597fc8951c3a82018.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 098169c3b..f967edfbc 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -634,7 +634,7 @@ void TWPartitionManager::Clean_Backup_Folder(string Backup_Folder) {
return;
}
- while (p = readdir(d)) {
+ while ((p = readdir(d))) {
if (!strcmp(p->d_name, ".") || !strcmp(p->d_name, ".."))
continue;
@@ -675,7 +675,7 @@ int TWPartitionManager::Cancel_Backup() {
}
int TWPartitionManager::Run_Backup(void) {
- int check, do_md5, partition_count, disable_free_space_check = 0;
+ int check, do_md5, partition_count = 0, disable_free_space_check = 0;
string Backup_Folder, Backup_Name, Full_Backup_Path, Backup_List, backup_path;
unsigned long long total_bytes = 0, file_bytes = 0, img_bytes = 0, free_space = 0, img_bytes_remaining, file_bytes_remaining, subpart_size;
unsigned long img_time = 0, file_time = 0;