summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-21 16:28:18 +0000
committerpixel <pixel>2007-05-21 16:28:18 +0000
commit7aebcc8c7e6d0bb7ba3a9d6ce32951d5ab5c99e5 (patch)
tree975a46ad929bf7c8bbc493b87d76e4eeaa3b0207
parentb3de1516e49ccbe11c0c01afda1d6248359a977b (diff)
Fixing chained-list creation.
-rw-r--r--lib/Domain.cc3
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() {