summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-13 02:52:34 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-13 02:52:34 +0200
commit17986e6b8766ef9bdaa49efc7099e3867ca1978a (patch)
tree32cccae4d794caf8ed46726004dbc35f16923c99
parentmake a copy of sideloaded packages in /tmp before verifying (diff)
parentfix bug in applying patches (diff)
downloadandroid_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar
android_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.gz
android_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.bz2
android_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.lz
android_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.xz
android_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.zst
android_bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.zip
-rw-r--r--applypatch/applypatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c
index 99d366165..5debaace0 100644
--- a/applypatch/applypatch.c
+++ b/applypatch/applypatch.c
@@ -588,7 +588,7 @@ int applypatch(const char* source_filename,
int to_use = FindMatchingPatch(copy_file.sha1,
patch_sha1_str, num_patches);
- if (to_use > 0) {
+ if (to_use >= 0) {
copy_patch_value = patch_data[to_use];
}