summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-08-13 02:38:09 +0200
committerandroid-build SharedAccount <android-build@sekiwake.mtv.corp.google.com>2010-08-13 20:50:54 +0200
commitdff87121ad861dc830fc96823725b466d80d1110 (patch)
treeaba530f55ad47dd1dee46bdb06a1c766a23b8cdd /applypatch/applypatch.c
parentremove shadowed variable declaration (diff)
downloadandroid_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.tar
android_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.tar.gz
android_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.tar.bz2
android_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.tar.lz
android_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.tar.xz
android_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.tar.zst
android_bootable_recovery-dff87121ad861dc830fc96823725b466d80d1110.zip
Diffstat (limited to 'applypatch/applypatch.c')
-rw-r--r--applypatch/applypatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c
index 3c816c52e..b85b91592 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];
}