public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] resolv: Initialize loop variable on tst-resolv-trailing
Date: Thu, 31 Mar 2022 11:56:55 +0000 (GMT) [thread overview]
Message-ID: <20220331115655.C02753857C50@sourceware.org> (raw)
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], };
reply other threads:[~2022-03-31 11:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220331115655.C02753857C50@sourceware.org \
--to=azanella@sourceware.org \
--cc=glibc-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).