diff options
author | 2009-06-12 11:06:24 -0700 | |
---|---|---|
committer | 2009-06-12 16:21:24 -0700 | |
commit | 1cf587496fcb1d652bab9fc6792fb106b6fefaa4 (patch) | |
tree | 96e989c088b0e2fb8560d5b2e24562188a128e19 /libs/utils/BackupData.cpp | |
parent | 6599426f74371c823fcfe570f61577262eb0df44 (diff) |
Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput.
Diffstat (limited to 'libs/utils/BackupData.cpp')
-rw-r--r-- | libs/utils/BackupData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/utils/BackupData.cpp b/libs/utils/BackupData.cpp index 120f23d3628e..8c9f87528e22 100644 --- a/libs/utils/BackupData.cpp +++ b/libs/utils/BackupData.cpp @@ -327,7 +327,7 @@ BackupDataReader::ReadAppHeader(String8* packageName, int* cookie) } size_t size = m_header.app.packageLen; char* buf = packageName->lockBuffer(size); - if (packageName == NULL) { + if (buf == NULL) { packageName->unlockBuffer(); m_status = ENOMEM; return m_status; |