aboutsummaryrefslogtreecommitdiff
path: root/src/or/status.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-16 15:40:15 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-16 15:40:15 -0500
commit5d2a23397a3775eecb35bea23edffbef40b6cd94 (patch)
tree6680efe61ba7e04c346bf7f0c9238d82d17331a7 /src/or/status.c
parent7117959199a230cc7f1684794b8b13235b5f2715 (diff)
downloadtor-5d2a23397a3775eecb35bea23edffbef40b6cd94.tar.gz
tor-5d2a23397a3775eecb35bea23edffbef40b6cd94.zip
Fix a few coverity "Use after NULL check" warnings
Also remove the unit test mocks that allowed get_options() to be NULL; that's an invariant violation for get_options().
Diffstat (limited to 'src/or/status.c')
-rw-r--r--src/or/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/status.c b/src/or/status.c
index 8057abef16..98db688e5b 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -132,7 +132,7 @@ log_heartbeat(time_t now)
circuit_log_ancient_one_hop_circuits(1800);
- if (options && options->BridgeRelay) {
+ if (options->BridgeRelay) {
char *msg = NULL;
msg = format_client_stats_heartbeat(now);
if (msg)