From 489ff5c20a1457d0e7d765c8f05856c50c4777a8 Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Fri, 21 May 2021 11:24:30 +0200 Subject: [PATCH] tests: Treat empty SECP2561_TEST_ITERS as if it was unset --- src/tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests.c b/src/tests.c index 9c2d6cbf89db1..6ceaba5e3110a 100644 --- a/src/tests.c +++ b/src/tests.c @@ -6471,7 +6471,7 @@ int main(int argc, char **argv) { count = strtol(argv[1], NULL, 0); } else { const char* env = getenv("SECP256K1_TEST_ITERS"); - if (env) { + if (env && strlen(env) > 0) { count = strtol(env, NULL, 0); } }