Skip to content

Commit

Permalink
load_roots: fix no-argument detection
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm committed Jul 30, 2021
1 parent 5bc763d commit 051b1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/x509/load_roots.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int main( int argc, char *argv[] )
struct mbedtls_timing_hr_time timer;
unsigned long ms;

if( argc == 0 )
if( argc <= 1 )
{
mbedtls_printf( USAGE );
goto exit;
Expand Down

0 comments on commit 051b1da

Please sign in to comment.