summaryrefslogtreecommitdiffstats
path: root/applypatch/bspatch.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-08-15 23:31:52 +0200
committerDoug Zongker <dougz@google.com>2014-08-20 01:53:39 +0200
commitbc7ffeda98a861e346c30c771d3258030f7fcf21 (patch)
treea435cfd2bd1b457bb2e45304b8e75cd2e1305831 /applypatch/bspatch.c
parentclear BCB in misc partition before rebooting (diff)
downloadandroid_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.gz
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.bz2
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.lz
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.xz
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.zst
android_bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.zip
Diffstat (limited to 'applypatch/bspatch.c')
-rw-r--r--applypatch/bspatch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/applypatch/bspatch.c b/applypatch/bspatch.c
index 1dc7ab10b..b34ec2a88 100644
--- a/applypatch/bspatch.c
+++ b/applypatch/bspatch.c
@@ -112,9 +112,7 @@ int ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size,
printf("short write of output: %d (%s)\n", errno, strerror(errno));
return 1;
}
- if (ctx) {
- SHA_update(ctx, new_data, new_size);
- }
+ if (ctx) SHA_update(ctx, new_data, new_size);
free(new_data);
return 0;