summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rule.c b/rule.c
index 1d8bcfd..74f8a9e 100644
--- a/rule.c
+++ b/rule.c
@@ -397,7 +397,7 @@ freerule (rule, lastrule)
abort ();
else
pattern_rules = next;
- else
+ else if (lastrule != 0)
lastrule->next = next;
if (last_pattern_rule == rule)
last_pattern_rule = lastrule;