From f61ae85acfef8deefd7a5f2be3b36f6f79384a9d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 14 May 2011 00:36:06 +0000 Subject: 29268: extra dupstring() for value to be used in completion match group --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 9c6f0673a..5514e2e1d 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -2344,7 +2344,7 @@ addmatches(Cadata dat, char **argv) dat->pre = dupstring(dat->pre); if (dat->suf) dat->suf = dupstring(dat->suf); - if (!dat->prpre && (dat->prpre = oppre)) { + if (!dat->prpre && (dat->prpre = dupstring(oppre))) { singsub(&(dat->prpre)); untokenize(dat->prpre); } else -- cgit 1.4.1