cppcheck Returning an integer in a function with pointer return type is not portable
This commit is contained in:
1 parent
ba6ef2a1bc
commit
0c810ff4fd
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user