From 95067b88cbb3f57d072722493facf2e7e00b8d5d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 8 Apr 2020 14:27:46 -0700 Subject: md5sum: don't initialize a table we don't use. If you configure toybox with libcrypto, you don't need toybox to initialize its own table statically _or_ dynamically. --- toys/lsb/md5sum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/lsb') diff --git a/toys/lsb/md5sum.c b/toys/lsb/md5sum.c index f57996c6..da9b14bc 100644 --- a/toys/lsb/md5sum.c +++ b/toys/lsb/md5sum.c @@ -410,7 +410,7 @@ void md5sum_main(void) // Calculate table if we have floating point. Static version should drop // out at compile time when we don't need it. - if (toys.which->name[0]=='m') { + if (!CFG_TOYBOX_LIBCRYPTO && toys.which->name[0]=='m') { if (CFG_TOYBOX_FLOAT) { TT.md5table = xmalloc(64*4); for (i = 0; i<64; i++) TT.md5table[i] = fabs(sin(i+1))*(1LL<<32); -- cgit v1.2.3