Merge "Add ld.config.txt for Android 8.x+ trees" into android-9.0
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index e6a489f..4386ff6 100755
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -1240,7 +1240,7 @@
std::string TWFunc::get_cache_dir() {
if (PartitionManager.Find_Partition_By_Path(NON_AB_CACHE_DIR) == NULL) {
- if (PartitionManager.Find_Partition_By_Path(NON_AB_CACHE_DIR) == NULL) {
+ if (PartitionManager.Find_Partition_By_Path(AB_CACHE_DIR) == NULL) {
if (PartitionManager.Find_Partition_By_Path(PERSIST_CACHE_DIR) == NULL) {
LOGINFO("Unable to find a directory to store TWRP logs.");
return "";