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 74f8a9e..105cea5 100644
--- a/rule.c
+++ b/rule.c
@@ -252,7 +252,7 @@ new_pattern_rule (rule, override)
rule->next = 0;
/* Search for an identical rule. */
- lastrule = pattern_rules;
+ lastrule = 0;
for (r = pattern_rules; r != 0; lastrule = r, r = r->next)
for (i = 0; rule->targets[i] != 0; ++i)
{