From 9da4e25183317ea87d1e7f14e9b13e0530ea0240 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Tue, 26 Apr 2011 04:50:15 +0200 Subject: Remove some dead code, found by clang --- src/or/connection_or.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 4b932ec51e..c6049d51f6 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -1414,9 +1414,8 @@ connection_or_send_netinfo(or_connection_t *conn) len = append_address_to_payload(out, &my_addr); if (len < 0) return -1; - out += len; } else { - *out++ = 0; + *out = 0; } connection_or_write_cell_to_buf(&cell, conn); -- cgit v1.2.3-54-g00ecf