summaryrefslogtreecommitdiff
path: root/Src/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 560855b9e..e6e89faef 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2162,7 +2162,7 @@ mkautofn(Shfunc shf)
p->strs = NULL;
p->shf = shf;
p->npats = 0;
- p->pats = NULL;
+ p->pats = (Patprog *) p->prog;
p->flags = EF_REAL;
p->dump = NULL;