aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-04-08 14:27:46 -0700
committerRob Landley <rob@landley.net>2020-04-08 16:37:46 -0500
commit95067b88cbb3f57d072722493facf2e7e00b8d5d (patch)
treed21e4dfd4ebc13c54e47232879b709d5d1256c3e /toys/lsb
parent44c43973238ca1c8d7ac6e243932fb5b32731155 (diff)
downloadtoybox-95067b88cbb3f57d072722493facf2e7e00b8d5d.tar.gz
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.
Diffstat (limited to 'toys/lsb')
-rw-r--r--toys/lsb/md5sum.c2
1 files changed, 1 insertions, 1 deletions
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);