Skip to content

Commit

Permalink
Merge pull request #728 from openziti/gcc.14.fixes
Browse files Browse the repository at this point in the history
declare signer array using typedef
  • Loading branch information
scareything authored Sep 18, 2024
2 parents 2fa393d + 3405528 commit 846c9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/ziti.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ int ziti_get_ext_jwt_signers(ziti_context ztx, ziti_ext_signers_cb cb, void *ctx
return ZITI_INVALID_STATE;

if (model_map_size(&ztx->ext_signers) > 0) {
const ziti_jwt_signer **arr = calloc(model_map_size(&ztx->ext_signers) + 1, sizeof(ziti_jwt_signer*));
ziti_jwt_signer_array arr = calloc(model_map_size(&ztx->ext_signers) + 1, sizeof(ziti_jwt_signer*));

int i = 0;
MODEL_MAP_FOR(it, ztx->ext_signers) {
Expand Down

0 comments on commit 846c9db

Please sign in to comment.