resolv: Initialize loop variable on tst-resolv-trailing

Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
Adhemerval Zanella 2022-03-25 11:26:26 -03:00
parent c5c65de1b2
commit 2fe316888a

View File

@ -114,7 +114,7 @@ do_test (void)
AI_V4MAPPED,
AI_V4MAPPED | AI_NUMERICHOST,
};
for (size_t gai_flags_idx; gai_flags_idx < array_length (gai_flags);
for (size_t gai_flags_idx = 0; gai_flags_idx < array_length (gai_flags);
++gai_flags_idx)
{
struct addrinfo hints = { .ai_flags = gai_flags[gai_flags_idx], };