diff options
author | Doug Zongker <dougz@android.com> | 2010-08-12 17:52:34 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-12 17:52:34 -0700 |
commit | 17986e6b8766ef9bdaa49efc7099e3867ca1978a (patch) | |
tree | 32cccae4d794caf8ed46726004dbc35f16923c99 /applypatch | |
parent | 23ceeea85e6a3555dd3d7140128e310954cadf7f (diff) | |
parent | 8cd9e4f3d4eba481b411482331293c8079ab24b2 (diff) | |
download | bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.zip bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.gz bootable_recovery-17986e6b8766ef9bdaa49efc7099e3867ca1978a.tar.bz2 |
am 8cd9e4f3: fix bug in applying patches
Merge commit '8cd9e4f3d4eba481b411482331293c8079ab24b2' into gingerbread
* commit '8cd9e4f3d4eba481b411482331293c8079ab24b2':
fix bug in applying patches
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 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]; } |