[tor-commits] [tor/master] Assert that rep_hist_format_desc_stats() returns !NULL.
nickm at torproject.org
nickm at torproject.org
Tue May 15 12:37:56 UTC 2012
commit e3716598fc2d06b7556d41f31d8310df19a645f5
Author: Linus Nordberg <linus at nordberg.se>
Date: Tue May 15 11:07:01 2012 +0200
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.
---
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 173a770..59e08e5 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) {
More information about the tor-commits
mailing list