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

@ -867,7 +867,7 @@ int main(int argc, char *argv[])
mbedtls_test_enable_insecure_external_rng();
#endif /* MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG */
if (argc == 0) {
if (argc < 2) {
usage:
if (ret == 0) {
ret = 1;