]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Bugfix: when no units are given, default to seconds or bytes.
authorNick Mathewson <nickm@torproject.org>
Tue, 23 Nov 2004 10:52:27 +0000 (10:52 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Nov 2004 10:52:27 +0000 (10:52 +0000)
svn:r2960

src/or/config.c

index 6465969ce71862af08d8885d0e8f05dac7fd951c..b9051d23a7ae43818043392439e55f670eb61b8d 100644 (file)
@@ -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 },