summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/match.c b/match.c
index 30f26137..c08464a4 100644
--- a/match.c
+++ b/match.c
@@ -2305,7 +2305,16 @@ static match_files_ctx mf_file_data(match_files_ctx c, val file,
static match_files_ctx mf_from_ml(match_line_ctx ml)
{
- return mf_all(cons(ml.specline, nil), nil, ml.bindings, nil, ml.file);
+ match_files_ctx mf;
+
+ mf.spec = cons(ml.specline, nil);
+ mf.files = nil;
+ mf.curfile = ml.file;
+ mf.bindings = ml.bindings;
+ mf.data = nil;
+ mf.data_lineno = ml.data_lineno;
+
+ return mf;
}
static val match_files(match_files_ctx a);