summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2013-06-24 22:46:13 +0200
committerGerrit Code Review <gerrit@5.9.244.119>2013-07-01 22:50:15 +0200
commit4d4b3361f339692cb7e3f939a8b614e7116661f5 (patch)
tree083110bf85bbe4543fb18a7b83a2b1327f345b2c
parentUpdate SuperSU binary (diff)
downloadandroid_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.tar
android_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.tar.gz
android_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.tar.bz2
android_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.tar.lz
android_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.tar.xz
android_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.tar.zst
android_bootable_recovery-4d4b3361f339692cb7e3f939a8b614e7116661f5.zip
-rw-r--r--partition.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index 9ab60ba9a..7cf0ab3fb 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1214,13 +1214,15 @@ void TWPartition::Check_FS_Type() {
LOGINFO("Can't probe device %s\n", Actual_Block_Device.c_str());
return;
}
+
if (blkid_probe_lookup_value(pr, "TYPE", &type, NULL) < 0) {
blkid_free_probe(pr);
LOGINFO("can't find filesystem on device %s\n", Actual_Block_Device.c_str());
return;
}
+
Current_File_System = type;
- return;
+ blkid_free_probe(pr);
}
bool TWPartition::Wipe_EXT23(string File_System) {