Skip to content

Commit a64fc6c

Browse files
committed
code: declare i variable inside loop in authz.c
Signed-off-by: Hans Zandbelt <hans.zandbelt@openidc.com>
1 parent beb9f0b commit a64fc6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/handle/authz.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,9 @@ static oidc_authz_json_handler_t _oidc_authz_separator_handlers[] = {
295295
// clang-format on
296296

297297
static apr_byte_t oidc_auth_handle_separator(request_rec *r, const char *key, json_t *val, const char *spec) {
298-
int i = 0;
299298
if ((spec == NULL) || (val == NULL) || (key == NULL))
300299
return FALSE;
301-
for (i = 0; i < OIDC_AUTHZ_SEPARATOR_HANDLERS_NUMBER; i++) {
300+
for (int i = 0; i < OIDC_AUTHZ_SEPARATOR_HANDLERS_NUMBER; i++) {
302301
// there's some overloading going on here, applying a char as an int index
303302
if (_oidc_authz_separator_handlers[i].type == (*spec)) {
304303
// skip the separator

0 commit comments

Comments
 (0)