diff options
Diffstat (limited to 'install/wipe_device.cpp')
-rw-r--r-- | install/wipe_device.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/install/wipe_device.cpp b/install/wipe_device.cpp index 5a9b512c1..89d5d31a3 100644 --- a/install/wipe_device.cpp +++ b/install/wipe_device.cpp @@ -49,9 +49,8 @@ std::vector<std::string> GetWipePartitionList(Package* wipe_package) { constexpr char RECOVERY_WIPE_ENTRY_NAME[] = "recovery.wipe"; std::string partition_list_content; - ZipString path(RECOVERY_WIPE_ENTRY_NAME); ZipEntry entry; - if (FindEntry(zip, path, &entry) == 0) { + if (FindEntry(zip, RECOVERY_WIPE_ENTRY_NAME, &entry) == 0) { uint32_t length = entry.uncompressed_length; partition_list_content = std::string(length, '\0'); if (auto err = ExtractToMemory( |