about summary refs log tree commit diff
path: root/Src/Zle/compmatch.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-10-30 20:29:55 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-10-30 20:29:55 +0000
commitb9500900b14102e87a57840a89b6714b8b7840d2 (patch)
treeb037821ef451344ef3616155bec4571df5ce7133 /Src/Zle/compmatch.c
parent135211b00b887c20b08b149a66a8e800296ee29a (diff)
downloadzsh-b9500900b14102e87a57840a89b6714b8b7840d2.tar.gz
zsh-b9500900b14102e87a57840a89b6714b8b7840d2.tar.xz
zsh-b9500900b14102e87a57840a89b6714b8b7840d2.zip
25972: leaked and uninitialised memory found by valgrind
Diffstat (limited to 'Src/Zle/compmatch.c')
-rw-r--r--Src/Zle/compmatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index f92caa7bf..7a675a544 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -1687,6 +1687,7 @@ bld_line(Cmatcher mp, char **linep, char *mword, char *word, int wlen, int sfx)
     llen = mp->llen;
     rl = 0;
 
+    *line = '\0';
     if (sfx)
     {
 	/*