diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-18 20:29:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-18 20:29:51 -0400 |
commit | d1be2f5cf8afc7d94f4c69081897d7ea3da71298 (patch) | |
tree | 19f8186e82f3a97f9893bb17f7c72957340bae7e /src/or/circuitbuild.c | |
parent | 41a8930fa1202b882687c0c3a328307b480934b5 (diff) | |
download | tor-d1be2f5cf8afc7d94f4c69081897d7ea3da71298.tar.gz tor-d1be2f5cf8afc7d94f4c69081897d7ea3da71298.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 98fef4c142..6bdbead2eb 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( |