about summary refs log tree commit diff
path: root/src/network/gethostbyname2_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/gethostbyname2_r.c')
-rw-r--r--src/network/gethostbyname2_r.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c
index 27eb080f..d6920b26 100644
--- a/src/network/gethostbyname2_r.c
+++ b/src/network/gethostbyname2_r.c
@@ -20,6 +20,8 @@ int gethostbyname2_r(const char *name, int af,
 	size_t need;
 	const char *canon;
 
+	*res = 0;
+
 	af = hint.ai_family;
 
 	/* Align buffer */