summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mi/match.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mi/match.c b/mi/match.c
index b8e2a44..d6275ff 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -459,8 +459,7 @@ addrec(Frontier *fs, Node *pat, Node *val, Path *path)
switch (exprop(pat)) {
case Olor:
next = frontierdup(fs);
- if (fs->next)
- next->next = fs->next;
+ next->next = fs->next;
fs->next = next;
addrec(fs, pat->expr.args[1], val, path);
addrec(next, pat->expr.args[0], val, path);