From 2132d4b2d2ee34e9e20a952e6aa2c3f9bb605af8 Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Mon, 20 May 2024 14:05:14 +0200 Subject: [PATCH] Avoid using unneeded variable --- lib/misc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/misc.c b/lib/misc.c index 1f486f3..1015ce4 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -87,7 +87,6 @@ zip_in_protected_header(json_t *json) { json_t *prt = NULL; char *z = NULL; - const jose_hook_alg_t *a = NULL; prt = json_object_get(json, "protected"); if (prt && json_is_string(prt)) @@ -98,8 +97,7 @@ zip_in_protected_header(json_t *json) return false; /* We have "zip", but let's validate the alg also. */ - a = jose_hook_alg_find(JOSE_HOOK_ALG_KIND_COMP, z); - return a != NULL; + return jose_hook_alg_find(JOSE_HOOK_ALG_KIND_COMP, z) != NULL; } static void __attribute__((constructor))