summaryrefslogtreecommitdiff
path: root/libc/inet/resolv.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-17 01:28:36 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-17 01:28:36 +0000
commitb233676db696ec4bb4a9d55e76ec8012e6f7a22c (patch)
treea19d8729893f4f80cee6bbc7dcb59f93f0a211ac /libc/inet/resolv.c
parente835d2bf2191ad6082653b15321149966520b65d (diff)
resolv: fix testcase failure
test/regex/tst-regex2.c: fix testcase to compile with just "gcc <file>.c"
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r--libc/inet/resolv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index dc2ae7ba3..6be3a866d 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1462,9 +1462,9 @@ int attribute_hidden __read_etc_hosts_r(
*result = NULL;
return errno;
}
+ addr_list[0] = in;
+ addr_list[1] = NULL;
}
- addr_list[0] = in;
- addr_list[1] = NULL;
*h_errnop = HOST_NOT_FOUND;
while (fgets(buf, buflen, fp)) {