aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-03-21 01:59:05 +0100
committerSebastian Hahn <sebastian@torproject.org>2015-03-21 02:00:17 +0100
commit348f2744cf0d026b1bd06a11d599f0ecf675038d (patch)
tree0e4113fd07110a424abbe581614b3a03f7c9dbd9 /src/or
parent98c3942162831ddccea9dcf149d4c7f12b0a52a9 (diff)
downloadtor-348f2744cf0d026b1bd06a11d599f0ecf675038d.tar.gz
tor-348f2744cf0d026b1bd06a11d599f0ecf675038d.zip
Initialize two variables
This is a trivial change to get around two compiler warnings when assertions are removed during coverage builds.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index dcf716f2fa..369df67363 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1407,7 +1407,7 @@ static int
connection_handle_listener_read(connection_t *conn, int new_type)
{
tor_socket_t news; /* the new socket */
- connection_t *newconn;
+ connection_t *newconn = 0;
/* information about the remote peer when connecting to other routers */
struct sockaddr_storage addrbuf;
struct sockaddr *remote = (struct sockaddr*)&addrbuf;