From 2d71ac3cea773696f7ae57d84f50ce10cf2de686 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 22 Oct 2024 15:23:09 +0000 Subject: [PATCH] digest: Don't assign r when it is never read Signed-off-by: Michael Tremer --- src/libpakfire/digest.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libpakfire/digest.c b/src/libpakfire/digest.c index 8387d00b1..52ae91ee4 100644 --- a/src/libpakfire/digest.c +++ b/src/libpakfire/digest.c @@ -259,7 +259,6 @@ static EVP_MD_CTX* __pakfire_digest_setup(struct pakfire_ctx* ctx, const EVP_MD* if (!evp_ctx) { CTX_ERROR(ctx, "Could not initialize OpenSSL context: %s\n", ERR_error_string(ERR_get_error(), NULL)); - r = 1; goto ERROR; } @@ -268,7 +267,6 @@ static EVP_MD_CTX* __pakfire_digest_setup(struct pakfire_ctx* ctx, const EVP_MD* if (r != 1) { CTX_ERROR(ctx, "Could not setup digest: %s\n", ERR_error_string(ERR_get_error(), NULL)); - r = 1; goto ERROR; } -- 2.39.5