commit | 835dfe50a73c6f6de581aaa143c333af79bcca4d | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Thu Aug 17 16:27:22 2023 +0000 |
committer | Tomasz Wasilczyk <twasilczyk@google.com> | Tue Sep 12 22:31:10 2023 +0000 |
tree | 0bec830cab5de4388aafc4af0e357bfc327be1a0 | |
parent | a235f8ba91dd467b245f680887e2a75507814b4e [diff] [blame] |
Don't depend on String8 cast to C string Bug: 295394788 Test: m checkbuild Change-Id: I6aa039b6b2a4944e3537ef133f8785890d957edd
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index fadf82a..0ed47e7 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp
@@ -1790,7 +1790,7 @@ fn.c_str()); return nullptr; } - ZipFileRO *zip = ZipFileRO::open(fn); + ZipFileRO *zip = ZipFileRO::open(fn.c_str()); if (zip == nullptr) { SLOGE("Failed to open animation zip \"%s\": %s", fn.c_str(), strerror(errno));