tests: Treat empty SECP2561_TEST_ITERS as if it was unset

This commit is contained in:
Tim Ruffing 2021-05-21 11:24:30 +02:00
parent fcfcb97e74
commit 489ff5c20a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}