From b9500900b14102e87a57840a89b6714b8b7840d2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 30 Oct 2008 20:29:55 +0000 Subject: 25972: leaked and uninitialised memory found by valgrind --- Src/Zle/compmatch.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Src/Zle/compmatch.c') 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) { /* -- cgit 1.4.1