summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorRob Landley2005-12-15 06:51:52 +0000
committerRob Landley2005-12-15 06:51:52 +0000
commit164c5c80ba122a6ed71a29d41730c802750a5ae1 (patch)
treee69a53c0c1c166551b7f2693015cb4a5d4c49bfb /coreutils
parent5aabf4e41561a9b501997c088adbafbd68cd2f3a (diff)
downloadbusybox-164c5c80ba122a6ed71a29d41730c802750a5ae1.zip
busybox-164c5c80ba122a6ed71a29d41730c802750a5ae1.tar.gz
Eliminate unnecessary allocation from md5sum that was leaked without ever being used.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/md5_sha1_sum.c9
1 files changed, 0 insertions, 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++];