From 7d7fb58ee4b3824677486416c84dc030d87cec72 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 23 Nov 2004 09:01:37 +0000 Subject: [PATCH] fail more gracefully next time svn:r2954 --- trunk/src/or/rephist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/or/rephist.c b/trunk/src/or/rephist.c index 1dea9fa85c..72a9f4a812 100644 --- a/trunk/src/or/rephist.c +++ b/trunk/src/or/rephist.c @@ -588,6 +588,7 @@ rep_hist_get_bandwidth_lines(void) cp = buf; for (r=0;r<2;++r) { b = r?read_array:write_array; + tor_assert(b); format_iso_time(t, b->next_period-NUM_SECS_BW_SUM_INTERVAL); tor_snprintf(cp, len-(cp-buf), "opt %s %s (%d s) ", r?"read-history ":"write-history", t, NUM_SECS_BW_SUM_INTERVAL);