[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r10247: Oops; it is possible to have an empty store. (in tor/trunk: . src/or)
Author: nickm
Date: 2007-05-21 21:55:50 -0400 (Mon, 21 May 2007)
New Revision: 10247
Modified:
tor/trunk/
tor/trunk/src/or/routerlist.c
Log:
r12846@catbus: nickm | 2007-05-21 21:55:15 -0400
Oops; it is possible to have an empty store.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r12846] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c 2007-05-22 01:55:48 UTC (rev 10246)
+++ tor/trunk/src/or/routerlist.c 2007-05-22 01:55:50 UTC (rev 10247)
@@ -393,7 +393,7 @@
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;