commit | 66f5ce387af87584b40eeec774429d7ead28b7cc | [log] [tgz] |
---|---|---|
author | Doug Zongker <dougz@google.com> | Fri Aug 15 14:31:52 2014 -0700 |
committer | Doug Zongker <dougz@google.com> | Tue Aug 19 13:40:15 2014 -0700 |
tree | 225eaa2234f683328b9055cd823017d8f748d9eb | |
parent | cdc9828fca4517eff82b9e01ad328d9a38d11f16 [diff] [blame] |
installer for new block OTA system Bug: 16984795 Change-Id: I90f958446baed83dec658de2430c8fc5e9c3047e
diff --git a/applypatch/bspatch.c b/applypatch/bspatch.c index 1dc7ab1..b34ec2a 100644 --- a/applypatch/bspatch.c +++ b/applypatch/bspatch.c
@@ -112,9 +112,7 @@ 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;