diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-05-15 11:07:01 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2012-05-15 13:12:34 +0200 |
commit | e3716598fc2d06b7556d41f31d8310df19a645f5 (patch) | |
tree | b7a55e211c4faf065495101cc447fc5b7b3c0cd3 /src/or/rephist.c | |
parent | 57359b533673961fe15184b69bcedeb219c9dd90 (diff) | |
download | tor-e3716598fc2d06b7556d41f31d8310df19a645f5.tar tor-e3716598fc2d06b7556d41f31d8310df19a645f5.tar.gz |
Assert that rep_hist_format_desc_stats() returns !NULL.
The guard against this is the test for
start_of_served_descs_stats_interval != 0 done earlier.
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 173a770b1..59e08e59f 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -2705,6 +2705,7 @@ rep_hist_desc_stats_write(time_t now) return start_of_served_descs_stats_interval + WRITE_STATS_INTERVAL; str = rep_hist_format_desc_stats(now); + tor_assert(str != NULL); statsdir = get_datadir_fname("stats"); if (check_private_dir(statsdir, CPD_CREATE, get_options()->User) < 0) { |