From 7aebcc8c7e6d0bb7ba3a9d6ce32951d5ab5c99e5 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 21 May 2007 16:28:18 +0000 Subject: Fixing chained-list creation. --- lib/Domain.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3