summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/compcore.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index abb3ca166..715556c0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-05-14 Peter Stephenson <p.w.stephenson@ntlworld.com>
+ * 29268: Src/Zle/compcore.c: dupstring() the value that's
+ going to be used for prpre, whatever the heck that is.
+
* 29267: configure.ac, Src/mem.c, Src/zsh.h, Src/Zle/comp.h,
Src/Zle/compcore.c, Src/Zle/compctl.c, Src/Zle/complist.c,
Src/Zle/compresult.c: add --enable-zsh-heap-debug and use
@@ -14695,5 +14698,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5300 $
+* $Revision: 1.5301 $
*****************************************************
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