Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1f2485d authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Track libziparchive API change.

Bug: http://b/129068177
Test: treehugger
Change-Id: I4bd7c229200c3b651fdda1868736cfc7785cac6a
parent 036b111d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -395,11 +395,9 @@ void ForEachFileInZip(const std::string& zipname,
    ALOGD("searching for layers in '%s!/%s'", zipname.c_str(),
          dir_in_zip.c_str());
    ZipEntry entry;
    ZipString name;
    std::string name;
    while (Next(iter_cookie, &entry, &name) == 0) {
        std::string filename(
            reinterpret_cast<const char*>(name.name) + prefix.length(),
            name.name_length - prefix.length());
        std::string filename(name.substr(prefix.length()));
        // only enumerate direct entries of the directory, not subdirectories
        if (filename.find('/') != filename.npos)
            continue;