[tor-commits] [tor/maint-0.2.2] Remove some dead code, found by clang
nickm at torproject.org
nickm at torproject.org
Mon May 9 17:20:20 UTC 2011
commit 9da4e25183317ea87d1e7f14e9b13e0530ea0240
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Tue Apr 26 04:50:15 2011 +0200
Remove some dead code, found by clang
---
src/or/connection_or.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 4b932ec..c6049d5 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);
More information about the tor-commits
mailing list