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))