From b233676db696ec4bb4a9d55e76ec8012e6f7a22c Mon Sep 17 00:00:00 2001
From: Denis Vlasenko <vda.linux@googlemail.com>
Date: Wed, 17 Dec 2008 01:28:36 +0000
Subject: resolv: fix testcase failure test/regex/tst-regex2.c: fix testcase to
 compile with just "gcc <file>.c"

---
 libc/inet/resolv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'libc')

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)) {
-- 
cgit v1.2.3