From 164c5c80ba122a6ed71a29d41730c802750a5ae1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 15 Dec 2005 06:51:52 +0000 Subject: Eliminate unnecessary allocation from md5sum that was leaked without ever being used. --- coreutils/md5_sha1_sum.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 064340f..287c2f5 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c @@ -142,15 +142,6 @@ static int hash_files(int argc, char **argv, const uint8_t hash_algo) } else #endif { - uint8_t hash_length; - - if (hash_algo == HASH_MD5) { - hash_length = 16; - } else { - hash_length = 20; - } - hash_value = xmalloc(hash_length); - while (optind < argc) { char *file_ptr = argv[optind++]; -- cgit v1.1