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-19 22:40:15 +0200
commit66f5ce387af87584b40eeec774429d7ead28b7cc (patch)
tree225eaa2234f683328b9055cd823017d8f748d9eb /applypatch/bspatch.c
parentam 1a35a586: revert uncrypt back to dynamic linking, fix libs (diff)
downloadandroid_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.tar
android_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.tar.gz
android_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.tar.bz2
android_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.tar.lz
android_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.tar.xz
android_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.tar.zst
android_bootable_recovery-66f5ce387af87584b40eeec774429d7ead28b7cc.zip
Diffstat (limited to '')
-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;