Skip to content

Commit

Permalink
Avoid using unneeded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sarroutbi authored May 20, 2024
1 parent b67c4b4 commit 2132d4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit 2132d4b

Please sign in to comment.