commit | 051b1da49022b4ff8183752d679d7549d686a8e4 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Jul 30 13:01:36 2021 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Jul 30 13:02:18 2021 +0200 |
tree | a29f40d0ca531adb6eac1f9e545fe57ead8ca369 | |
parent | 5bc763d62273592bcade1ffa0f35ebe8463a7d8d [diff] [blame] |
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;