aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-22 01:55:50 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-22 01:55:50 +0000
commitd23cb33a1a7c2fb8e16040826ec2bbda607468c5 (patch)
treeea62c95d2d1a5f5253ed4f8ec92109c2a0b36d6d
parent0cb342e859799e4780e8d3b45dadcb2f35cfe7e7 (diff)
downloadtor-d23cb33a1a7c2fb8e16040826ec2bbda607468c5.tar
tor-d23cb33a1a7c2fb8e16040826ec2bbda607468c5.tar.gz
r12846@catbus: nickm | 2007-05-21 21:55:15 -0400
Oops; it is possible to have an empty store. svn:r10247
-rw-r--r--src/or/routerlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 05cab5b99..e0944a9d5 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -393,7 +393,7 @@ router_rebuild_store(int force, int extrainfo)
write_str_to_file(fname, "", 1);
r = 0;
- tor_assert(offset > 0);
+ tor_assert(offset >= 0);
stats->store_len = (size_t) offset;
stats->journal_len = 0;
stats->bytes_dropped = 0;