Skip to content

Commit e0ff3ee

Browse files
author
Hans Zandbelt
committed
fix c89 variable declaration
1 parent 56fe4f4 commit e0ff3ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cache/redis.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ static redisReply* oidc_cache_redis_command(request_rec *r,
165165
oidc_cache_cfg_redis_t *context, const char *format, ...) {
166166

167167
redisReply *reply = NULL;
168+
int i = 0;
168169

169170
/* try to execute a command at max 2 times while reconnecting */
170-
for (int i = 0; i < 2; i++) {
171+
for (i = 0; i < 2; i++) {
171172

172173
va_list args;
173174
va_start(args, format);

0 commit comments

Comments
 (0)