diff options
author | pixel <pixel> | 2007-05-21 16:28:18 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-05-21 16:28:18 +0000 |
commit | 7aebcc8c7e6d0bb7ba3a9d6ce32951d5ab5c99e5 (patch) | |
tree | 975a46ad929bf7c8bbc493b87d76e4eeaa3b0207 | |
parent | b3de1516e49ccbe11c0c01afda1d6248359a977b (diff) |
Fixing chained-list creation.
-rw-r--r-- | lib/Domain.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Domain.cc b/lib/Domain.cc index 8b06bdd..f740d71 100644 --- a/lib/Domain.cc +++ b/lib/Domain.cc @@ -6,7 +6,8 @@ Domain::Domain(const Regex & _pattern) : pattern(_pattern) { prev = 0; next = head; head = this; - next->prev = this; + if (next) + next->prev = this; } Domain::~Domain() { |