summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-03-10 17:53:58 +0100
committerDees Troy <dees_troy@teamw.in>2014-03-10 17:54:21 +0100
commit99c8dbf215ec7721f75f790633e1f6c7f0729b42 (patch)
tree30540e28f512c04090392985052871288bb993ca
parentMerge "Fix incorrect alignment of Restore Defaults button in some themes" into android-4.4 (diff)
downloadandroid_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.tar
android_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.tar.gz
android_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.tar.bz2
android_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.tar.lz
android_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.tar.xz
android_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.tar.zst
android_bootable_recovery-99c8dbf215ec7721f75f790633e1f6c7f0729b42.zip
-rw-r--r--partition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/partition.cpp b/partition.cpp
index 172633c07..640a280ef 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1386,7 +1386,7 @@ bool TWPartition::Wipe_EXT4() {
gui_print("Formatting %s using make_ext4fs function.\n", Display_Name.c_str());
- if (selabel_lookup(selinux_handle, &secontext, Mount_Point.c_str(), S_IFDIR) < 0) {
+ if (!selinux_handle || selabel_lookup(selinux_handle, &secontext, Mount_Point.c_str(), S_IFDIR) < 0) {
LOGINFO("Cannot lookup security context for '%s'\n", Mount_Point.c_str());
ret = make_ext4fs(Actual_Block_Device.c_str(), Length, Mount_Point.c_str(), NULL);
} else {