summaryrefslogtreecommitdiffstats
path: root/cmds/idmap/scan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/idmap/scan.cpp')
-rw-r--r--cmds/idmap/scan.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/idmap/scan.cpp b/cmds/idmap/scan.cpp
index c5fc941..1153f38 100644
--- a/cmds/idmap/scan.cpp
+++ b/cmds/idmap/scan.cpp
@@ -119,7 +119,8 @@ namespace {
int parse_manifest(const void *data, size_t size, const char *target_package_name)
{
- ResXMLTree parser(data, size);
+ ResXMLTree parser;
+ parser.setTo(data, size);
if (parser.getError() != NO_ERROR) {
ALOGD("%s failed to init xml parser, error=0x%08x\n", __FUNCTION__, parser.getError());
return -1;