diff options
author | Doug Zongker <dougz@android.com> | 2010-08-13 02:57:45 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-13 02:57:45 +0200 |
commit | 80dcee145ff6aa734b611133ef98045f940cf82c (patch) | |
tree | ac9f88b6c72f7e29f86a773a62150f46bd5815d3 | |
parent | support using an EMMC misc partition to store recovery arguments (diff) | |
parent | am 17986e6b: am 8cd9e4f3: fix bug in applying patches (diff) | |
download | android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.tar android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.tar.gz android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.tar.bz2 android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.tar.lz android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.tar.xz android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.tar.zst android_bootable_recovery-80dcee145ff6aa734b611133ef98045f940cf82c.zip |
-rw-r--r-- | applypatch/applypatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c index 1d9ef6efb..1ce7b5dab 100644 --- a/applypatch/applypatch.c +++ b/applypatch/applypatch.c @@ -678,7 +678,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]; } |