summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 564e3a2..4af8b9b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -309,7 +309,7 @@ network_init()
int s;
#endif
int ecode;
- struct addrinfo hints, *res;
+ struct addrinfo hints, *res = NULL;
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_INET;