aboutsummaryrefslogtreecommitdiffstats
path: root/applypatch
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-12 17:55:24 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-12 17:55:24 -0700
commitc4e3200578ad670bee9f5a88e90e7a77089d5df7 (patch)
tree32cccae4d794caf8ed46726004dbc35f16923c99 /applypatch
parentc02c37a1e6bd67198a6522461b81c9cdd125625e (diff)
parent17986e6b8766ef9bdaa49efc7099e3867ca1978a (diff)
downloadbootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.zip
bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.gz
bootable_recovery-c4e3200578ad670bee9f5a88e90e7a77089d5df7.tar.bz2
am 17986e6b: am 8cd9e4f3: fix bug in applying patches
Merge commit '17986e6b8766ef9bdaa49efc7099e3867ca1978a' into gingerbread-plus-aosp * commit '17986e6b8766ef9bdaa49efc7099e3867ca1978a': fix bug in applying patches
Diffstat (limited to 'applypatch')
-rw-r--r--applypatch/applypatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c
index 99d3661..5debaac 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];
}