about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-05 07:57:27 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-05 07:57:27 +0000
commitf94e5d78b06d2641e08d61f48c100eb205f5ac0a (patch)
tree8ee6afc85258918b0efe63d7482039e1a27d146f /Src/builtin.c
parentd1813a007f2343402d1de883403278f91da1ab53 (diff)
downloadzsh-f94e5d78b06d2641e08d61f48c100eb205f5ac0a.tar.gz
zsh-f94e5d78b06d2641e08d61f48c100eb205f5ac0a.tar.xz
zsh-f94e5d78b06d2641e08d61f48c100eb205f5ac0a.zip
some more memory leak fixes (11745)
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;