From 6890e0bc52eff1419619f7fab7594e9a0af03b6e Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 12 Jun 2009 11:06:24 -0700 Subject: [PATCH] Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput. --- libs/utils/BackupData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/utils/BackupData.cpp b/libs/utils/BackupData.cpp index 120f23d36..8c9f87528 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;