cppcheck Returning an integer in a function with pointer return type is not portable

This commit is contained in:
Philippe Teuwen 2021-09-03 23:57:26 +02:00
commit 0c810ff4fd

View file

@ -57,7 +57,7 @@ struct emv_pk *emv_pki_make_ca(const struct crypto_pk *cp,
struct crypto_hash *ch = crypto_hash_open(pk->hash_algo);
if (!ch) {
emv_pk_free(pk);
return false;
return NULL;
}
crypto_hash_write(ch, pk->rid, sizeof(pk->rid));