about summary refs log tree commit diff
path: root/Src/Zle/compctl.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-04-27 17:34:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-04-27 17:34:54 +0000
commitb6bcd1933ca12544bab5761e56b566c26b225470 (patch)
tree47dd19f3666c163ba19b0ecc20a97be826c5be3e /Src/Zle/compctl.c
parentca7ec1bf029448a3f38d8a2a4226e8c47896fffc (diff)
downloadzsh-b6bcd1933ca12544bab5761e56b566c26b225470.tar.gz
zsh-b6bcd1933ca12544bab5761e56b566c26b225470.tar.xz
zsh-b6bcd1933ca12544bab5761e56b566c26b225470.zip
zsh-workers:6117
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r--Src/Zle/compctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index 1268b8ae3..337ecb771 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -1692,7 +1692,7 @@ static int
 bin_compadd(char *name, char **argv, char *ops, int func)
 {
     struct cadata dat;
-    char *p, **sp, *e, *m;
+    char *p, **sp, *e, *m = NULL;
     int dm;
     Cmatcher match = NULL;
 
@@ -1839,7 +1839,7 @@ bin_compadd(char *name, char **argv, char *ops, int func)
     if (!*argv)
 	return 1;
 
-    match = cpcmatcher(match);
+    dat.match = match = cpcmatcher(match);
     dm = addmatchesptr(&dat, argv);
     freecmatcher(match);