summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-13 02:38:09 +0200
committerDoug Zongker <dougz@android.com>2010-08-13 02:38:09 +0200
commit8cd9e4f3d4eba481b411482331293c8079ab24b2 (patch)
tree647cad0b12c6afef6013cc333eacf1e7d2abd5c2 /applypatch/applypatch.c
parentSet adbd to be disabled by default in recovery (diff)
downloadandroid_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.tar
android_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.tar.gz
android_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.tar.bz2
android_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.tar.lz
android_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.tar.xz
android_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.tar.zst
android_bootable_recovery-8cd9e4f3d4eba481b411482331293c8079ab24b2.zip
Diffstat (limited to '')
-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];
}