aboutsummaryrefslogtreecommitdiff
path: root/pattern.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-24 22:54:54 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-24 22:54:54 -0700
commit0c5c4124a2052b017cc5d3e40d5b7f5bb3e3a8eb (patch)
tree35359143185da523a4a8c3c537f1e2a361c0b4fe /pattern.c
parent3de6de1ffa5e09314d6f283b6f5af3b07bcf88ed (diff)
Bugfix
Diffstat (limited to 'pattern.c')
-rw-r--r--pattern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pattern.c b/pattern.c
index e8919d1..168afb5 100644
--- a/pattern.c
+++ b/pattern.c
@@ -184,7 +184,7 @@ pat_t *chain_together(pat_t *first, pat_t *second)
} else if (p->type == BP_CHAIN) {
p = p->args.multiple.second;
} else if (p->type == BP_MATCH || p->type == BP_NOT_MATCH) {
- p = p->args.pat;
+ p = p->args.multiple.first;
} else break;
}
return chain;