From e7abf256f6449c9fd1c96ba3c92b0cbe29c7e1fd Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Thu, 25 Nov 2021 11:47:37 +0100 Subject: [PATCH] genprotimg: use NULL and not 0 for a NULL pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the sparse warning: utils/crypto.c:443:68: warning: Using plain integer as NULL pointer Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- genprotimg/src/utils/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genprotimg/src/utils/crypto.c b/genprotimg/src/utils/crypto.c index 087de375..96726095 100644 --- a/genprotimg/src/utils/crypto.c +++ b/genprotimg/src/utils/crypto.c @@ -440,7 +440,7 @@ static int check_signature_algo_match(const EVP_PKEY *pkey, const X509 *subject, static X509_CRL *load_crl_from_bio(BIO *bio) { - g_autoptr(X509_CRL) crl = PEM_read_bio_X509_CRL(bio, NULL, 0, NULL); + g_autoptr(X509_CRL) crl = PEM_read_bio_X509_CRL(bio, NULL, NULL, NULL); gint rc; if (crl)