aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-18 20:29:51 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-18 20:29:51 -0400
commitd1be2f5cf8afc7d94f4c69081897d7ea3da71298 (patch)
tree19f8186e82f3a97f9893bb17f7c72957340bae7e /src/or/circuitbuild.c
parent41a8930fa1202b882687c0c3a328307b480934b5 (diff)
downloadtor-d1be2f5cf8afc7d94f4c69081897d7ea3da71298.tar
tor-d1be2f5cf8afc7d94f4c69081897d7ea3da71298.tar.gz
scan-build: circuit_cpath_support_ntor had a dead initialization
We were initializing cpath twice, which doesn't make sense.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 98fef4c14..6bdbead2e 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -277,9 +277,9 @@ circuit_rep_hist_note_result(origin_circuit_t *circ)
static int
circuit_cpath_supports_ntor(const origin_circuit_t *circ)
{
- crypt_path_t *head = circ->cpath, *cpath = circ->cpath;
+ crypt_path_t *head, *cpath;
- cpath = head;
+ cpath = head = circ->cpath;
do {
if (cpath->extend_info &&
!tor_mem_is_zero(