Skip to content

Commit 2132d4b

Browse files
authored
Avoid using unneeded variable
1 parent b67c4b4 commit 2132d4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/misc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ zip_in_protected_header(json_t *json)
8787
{
8888
json_t *prt = NULL;
8989
char *z = NULL;
90-
const jose_hook_alg_t *a = NULL;
9190

9291
prt = json_object_get(json, "protected");
9392
if (prt && json_is_string(prt))
@@ -98,8 +97,7 @@ zip_in_protected_header(json_t *json)
9897
return false;
9998

10099
/* We have "zip", but let's validate the alg also. */
101-
a = jose_hook_alg_find(JOSE_HOOK_ALG_KIND_COMP, z);
102-
return a != NULL;
100+
return jose_hook_alg_find(JOSE_HOOK_ALG_KIND_COMP, z) != NULL;
103101
}
104102

105103
static void __attribute__((constructor))

0 commit comments

Comments
 (0)