]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - resolv/tst-resolv-trailing.c
nss_dns: Split getanswer_ptr from getanswer_r
[thirdparty/glibc.git] / resolv / tst-resolv-trailing.c
index f27e110afbf3e8b48aa78bd2a07cb2c1c52bf9e6..ce141759ad131a054f6f3722aca4e7134b620315 100644 (file)
@@ -1,5 +1,5 @@
 /* Test name resolution behavior with trailing characters.
-   Copyright (C) 2019-2020 Free Software Foundation, Inc.
+   Copyright (C) 2019-2022 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -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], };