diff options
Diffstat (limited to 'lib/Domain.cc')
-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() { |