summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--applypatch/applypatch.c2
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];
}