summaryrefslogtreecommitdiff
path: root/mi/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/match.c')
-rw-r--r--mi/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/match.c b/mi/match.c
index f3e3689..afd3e46 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -980,7 +980,7 @@ gendtree(Node *m, Node *val, Node **lbl, size_t nlbl)
for (i = 0; i < nfrontier; i++)
if (frontier[i]->final->refcnt == 0)
- fatal(pat[i], "pattern matched by earlier case");
+ fatal(pat[frontier[i]->i], "pattern matched by earlier case");
if (debugopt['M'] || getenv("M")) {
dbgloc = strdup(getenv("M"));