Skip to content

Commit

Permalink
tls: Fix ‘for’ loop initial declarations error
Browse files Browse the repository at this point in the history
  • Loading branch information
xkaraman committed Mar 27, 2024
1 parent 4137a8c commit 9f2abc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/tls/tls_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ static tls_domains_cfg_t* tls_use_modparams(void)
*/
static void fork_child(void)
{
for(int k = 0; k < 16; k++) {
int k = 0;
for(k = 0; k < 16; k++) {
if(pthread_getspecific(k) != 0)
pthread_setspecific(k, 0x0);
}
Expand Down

0 comments on commit 9f2abc6

Please sign in to comment.