mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
r12846@catbus: nickm | 2007-05-21 21:55:15 -0400
Oops; it is possible to have an empty store. svn:r10247
This commit is contained in:
parent
0cb342e859
commit
d23cb33a1a
@ -393,7 +393,7 @@ router_rebuild_store(int force, int extrainfo)
|
|||||||
write_str_to_file(fname, "", 1);
|
write_str_to_file(fname, "", 1);
|
||||||
|
|
||||||
r = 0;
|
r = 0;
|
||||||
tor_assert(offset > 0);
|
tor_assert(offset >= 0);
|
||||||
stats->store_len = (size_t) offset;
|
stats->store_len = (size_t) offset;
|
||||||
stats->journal_len = 0;
|
stats->journal_len = 0;
|
||||||
stats->bytes_dropped = 0;
|
stats->bytes_dropped = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user