summaryrefslogtreecommitdiffstats
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
authorPiotr Jastrzebski <haaawk@google.com>2014-08-18 09:04:08 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-18 09:04:08 +0000
commit626e1c65ef408fd9eb7d3bbbbb90137e90c82a4e (patch)
treef3cfe0afdca80e139bdc5531939e2b570d506de7 /libs/androidfw/ZipFileRO.cpp
parent18a7b459f10f477a83f8d8356a62eff39065dd13 (diff)
parent8a28e16cd346bf28d00d8d5935ed092ffb59e5c9 (diff)
downloadframeworks_base-626e1c65ef408fd9eb7d3bbbbb90137e90c82a4e.zip
frameworks_base-626e1c65ef408fd9eb7d3bbbbb90137e90c82a4e.tar.gz
frameworks_base-626e1c65ef408fd9eb7d3bbbbb90137e90c82a4e.tar.bz2
am 8a28e16c: Merge "Update ziparchive usage to the new API."
* commit '8a28e16cd346bf28d00d8d5935ed092ffb59e5c9': Update ziparchive usage to the new API.
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
-rw-r--r--libs/androidfw/ZipFileRO.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp
index a485d2b..5f6e831 100644
--- a/libs/androidfw/ZipFileRO.cpp
+++ b/libs/androidfw/ZipFileRO.cpp
@@ -50,8 +50,7 @@ public:
ZipEntryName name;
void *cookie;
- _ZipEntryRO() : cookie(NULL) {
- }
+ _ZipEntryRO() : cookie(NULL) {}
~_ZipEntryRO() {
EndIteration(cookie);
@@ -87,15 +86,15 @@ ZipFileRO::~ZipFileRO() {
ZipEntryRO ZipFileRO::findEntryByName(const char* entryName) const
{
_ZipEntryRO* data = new _ZipEntryRO;
- const int32_t error = FindEntry(mHandle, entryName, &(data->entry));
+
+ data->name = ZipEntryName(entryName);
+
+ const int32_t error = FindEntry(mHandle, data->name, &(data->entry));
if (error) {
delete data;
return NULL;
}
- data->name.name = entryName;
- data->name.name_length = strlen(entryName);
-
return (ZipEntryRO) data;
}