Fix bugs in example programs: change argc == 0 to argc < 2

Signed-off-by: Aditya Deshpande <[email protected]>
This commit is contained in:
Aditya Deshpande
2023-01-30 16:48:13 +00:00
parent e28397a376
commit 644a5c0b2b
13 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -370,7 +370,7 @@ int main(int argc, char *argv[])
mbedtls_pk_init(&pkey);
mbedtls_ctr_drbg_init(&ctr_drbg);
if (argc == 0) {
if (argc < 2) {
usage:
mbedtls_printf(USAGE);