]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 11 Nov 2013 23:58:46 +0000 (00:58 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 11 Nov 2013 23:58:46 +0000 (00:58 +0100)
covers it).

ChangeLog
grub-core/commands/hashsum.c

index d00c37662dc29fa5c4497cecfc548adce051961d..65a6a97557edafa92d42708fd0d260d4afa25ccd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
+       covers it).
+
 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/commands/hashsum.c: Remove variable length arrays.
index f50db35cd95396880f9c53e424aac1f06ccfbaa8..d18687351a57ef9b95097f24d51dc0c68b79f52a 100644 (file)
@@ -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)
     {