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

Signed-off-by: Aditya Deshpande <aditya.deshpande@arm.com>
This commit is contained in:
Aditya Deshpande
2023-01-30 15:58:50 +00:00
parent e28397a376
commit 644a5c0b2b
13 changed files with 13 additions and 13 deletions

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