From a44195dcc3515b2634c2aebc4df839e7602015c6 Mon Sep 17 00:00:00 2001 From: landley Date: Thu, 15 Dec 2005 06:51:52 +0000 Subject: Eliminate unnecessary allocation from md5sum that was leaked without ever being used. git-svn-id: svn://busybox.net/trunk/busybox@12890 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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 064340f25..287c2f524 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.2.3-55-g6feb