summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-23 10:52:27 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-23 10:52:27 +0000
commit5fa55c8317bcb6343d8210200a10ff9f50c287cf (patch)
tree4c183ecdfd1db894b77a764a4de4277678a03fa9
parente516345383bde901933d1e2b883b0c913a020d5f (diff)
downloadtor-5fa55c8317bcb6343d8210200a10ff9f50c287cf.tar.gz
tor-5fa55c8317bcb6343d8210200a10ff9f50c287cf.zip
Bugfix: when no units are given, default to seconds or bytes.
svn:r2960
-rw-r--r--src/or/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 6465969ce7..b9051d23a7 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2237,6 +2237,7 @@ struct unit_table_t {
};
static struct unit_table_t memory_units[] = {
+ { "", 1 },
{ "b", 1<< 0 },
{ "byte", 1<< 0 },
{ "bytes", 1<< 0 },
@@ -2257,6 +2258,7 @@ static struct unit_table_t memory_units[] = {
};
static struct unit_table_t time_units[] = {
+ { "", 1 },
{ "second", 1 },
{ "seconds", 1 },
{ "minute", 60 },