diff options
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 4 |
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); |