mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-16 15:56:15 -04:00
fix warnings for potentially uninitalized variables
svn:r880
This commit is contained in:
parent
f1c6c5a978
commit
51bd6c0b24
2
http.c
2
http.c
@ -2337,7 +2337,7 @@ evhttp_get_request_connection(
|
|||||||
int fd, struct sockaddr *sa, socklen_t salen)
|
int fd, struct sockaddr *sa, socklen_t salen)
|
||||||
{
|
{
|
||||||
struct evhttp_connection *evcon;
|
struct evhttp_connection *evcon;
|
||||||
char *hostname, *portname;
|
char *hostname = NULL, *portname = NULL;
|
||||||
|
|
||||||
name_from_addr(sa, salen, &hostname, &portname);
|
name_from_addr(sa, salen, &hostname, &portname);
|
||||||
event_debug(("%s: new request from %s:%s on %d\n",
|
event_debug(("%s: new request from %s:%s on %d\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user