commit | 373c54e174f8882bfc3fd019b8be639abf433d73 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Jul 30 13:01:36 2021 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Oct 25 21:24:23 2021 +0200 |
tree | c3a0490bb2f31e591f1df40e9c9098dfbba84bcf | |
parent | db92884cd013be8b6b511048ea1fc9e52e2c87f8 [diff] |
load_roots: fix no-argument detection Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
diff --git a/programs/x509/load_roots.c b/programs/x509/load_roots.c index de9914e..69357ff 100644 --- a/programs/x509/load_roots.c +++ b/programs/x509/load_roots.c
@@ -136,7 +136,7 @@ struct mbedtls_timing_hr_time timer; unsigned long ms; - if( argc == 0 ) + if( argc <= 1 ) { mbedtls_printf( USAGE ); goto exit;