mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +00:00
resolv: Initialize loop variable on tst-resolv-trailing
Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
parent
c5c65de1b2
commit
2fe316888a
@ -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], };
|
||||
|
Loading…
Reference in New Issue
Block a user