aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-25 11:26:26 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-31 08:55:48 -0300
commit2fe316888a5d4ef9b215c7de2532ce981930b97e (patch)
tree0bf6027583f16e9e7b0bc82ccbb5f54ae1e4ff31 /resolv
parentc5c65de1b29f8f73f8aff5c3526427fc37760f2e (diff)
downloadglibc-2fe316888a5d4ef9b215c7de2532ce981930b97e.tar
glibc-2fe316888a5d4ef9b215c7de2532ce981930b97e.tar.gz
glibc-2fe316888a5d4ef9b215c7de2532ce981930b97e.tar.bz2
glibc-2fe316888a5d4ef9b215c7de2532ce981930b97e.zip
resolv: Initialize loop variable on tst-resolv-trailing
Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/tst-resolv-trailing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/tst-resolv-trailing.c b/resolv/tst-resolv-trailing.c
index c42e2a34d6..ce141759ad 100644
--- a/resolv/tst-resolv-trailing.c
+++ b/resolv/tst-resolv-trailing.c
@@ -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], };