public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] resolv: Initialize loop variable on tst-resolv-trailing
@ 2022-03-31 11:56 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-03-31 11:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2fe316888a5d4ef9b215c7de2532ce981930b97e

commit 2fe316888a5d4ef9b215c7de2532ce981930b97e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 11:26:26 2022 -0300

    resolv: Initialize loop variable on tst-resolv-trailing
    
    Checked on x86_64-linux-gnu and i686-linux-gnu.

Diff:
---
 resolv/tst-resolv-trailing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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], };


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-31 11:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 11:56 [glibc] resolv: Initialize loop variable on tst-resolv-trailing Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).