diff options
author | Doug Zongker <dougz@android.com> | 2010-08-13 02:55:24 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-13 02:55:24 +0200 |
commit | c4e3200578ad670bee9f5a88e90e7a77089d5df7 (patch) | |
tree | 32cccae4d794caf8ed46726004dbc35f16923c99 /applypatch | |
parent | am 23ceeea8: make a copy of sideloaded packages in /tmp before verifying (diff) | |
parent | am 8cd9e4f3: fix bug in applying patches (diff) | |
download | android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.gz android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.bz2 android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.lz android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.xz android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.zst android_bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.zip |
Diffstat (limited to 'applypatch')
-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 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]; } |