From 51bd6c0b249ebd53e1ab4617fb67861c2513c28f Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Wed, 25 Jun 2008 16:06:16 +0000 Subject: [PATCH] fix warnings for potentially uninitalized variables svn:r880 --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index c27183b1..606f15b8 100644 --- a/http.c +++ b/http.c @@ -2337,7 +2337,7 @@ evhttp_get_request_connection( int fd, struct sockaddr *sa, socklen_t salen) { struct evhttp_connection *evcon; - char *hostname, *portname; + char *hostname = NULL, *portname = NULL; name_from_addr(sa, salen, &hostname, &portname); event_debug(("%s: new request from %s:%s on %d\n",