From a1ef7718c9a5b7bb0f1d1efc21863f681b7b066b Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Tue, 12 Nov 2013 00:58:46 +0100 Subject: [PATCH] * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already covers it). --- ChangeLog | 5 +++++ grub-core/commands/hashsum.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d00c37662..65a6a9755 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-12 Vladimir Serbinenko + + * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already + covers it). + 2013-11-12 Vladimir Serbinenko * grub-core/commands/hashsum.c: Remove variable length arrays. diff --git a/grub-core/commands/hashsum.c b/grub-core/commands/hashsum.c index f50db35cd..d18687351 100644 --- a/grub-core/commands/hashsum.c +++ b/grub-core/commands/hashsum.c @@ -73,7 +73,6 @@ hash_file (grub_file_t file, const gcry_md_spec_t *hash, void *result) if (!readbuf || !context) goto fail; - grub_memset (context, 0, sizeof (context)); hash->init (context); while (1) {