summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/match.c b/match.c
index d06d7c76..a87c09e5 100644
--- a/match.c
+++ b/match.c
@@ -1247,10 +1247,10 @@ static val h_trailer(match_line_ctx *c)
if (!new_pos) {
LOG_MISMATCH("trailer");
ret = nil;
+ } else {
+ LOG_MATCH("trailer", new_pos);
+ ret = cons(new_bindings, plus(c->pos, c->base));
}
-
- LOG_MATCH("trailer", new_pos);
- ret = cons(new_bindings, plus(c->pos, c->base));
}
uw_unwind {