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

This commit is contained in:
Philippe Teuwen committed 2021-09-04 00:54:59 +02:00
1 parent ba6ef2a1bc
commit 0c810ff4fd
1 file changed
+1 -1
+1 -1
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));