summaryrefslogtreecommitdiff
path: root/src/socket-proxy/socket-proxyd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-10-20 01:10:49 +0200
committerKay Sievers <kay@vrfy.org>2013-10-20 01:10:49 +0200
commitb6818c7d10659495de6424bad8e019be1001979f (patch)
treefcb1449d88593da913a21573880d0820d18cb5bf /src/socket-proxy/socket-proxyd.c
parente5d5aa1d0f4e143f12f5e00ca072547369d37e53 (diff)
socket-proxyd: initialize variable used in error code path
Diffstat (limited to 'src/socket-proxy/socket-proxyd.c')
-rw-r--r--src/socket-proxy/socket-proxyd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index 59216038db..7fe3e52552 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -348,7 +348,7 @@ static int get_server_connection_fd(const struct proxy *proxy) {
static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdata) {
struct proxy *proxy = (struct proxy *) userdata;
struct connection *c_server_to_client;
- struct connection *c_client_to_server;
+ struct connection *c_client_to_server = NULL;
int r = 0;
union sockaddr_union sa;
socklen_t salen = sizeof(sa);