summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-07-12 10:05:46 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-07-12 10:05:46 +0000
commitaad11eb6188b0b42ddfa437defb36c741ddc722c (patch)
treedc68667502e5ac73d1988221f041476732bed6a4 /Src/Zle
parentdef0167e34a276bbcf6e1e63435dd77a79b12b18 (diff)
downloadzsh-aad11eb6188b0b42ddfa437defb36c741ddc722c.tar.gz
zsh-aad11eb6188b0b42ddfa437defb36c741ddc722c.tar.xz
zsh-aad11eb6188b0b42ddfa437defb36c741ddc722c.zip
unposted: improve 20150 by setting pointer to NULL
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compresult.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index 05f632d92..05b5f1a10 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1770,7 +1770,10 @@ calclist(int showall)
     }
     else
 	for (g = amatches; g; g = g->next)
+	{
 	    zfree(g->widths, 0);
+	    g->widths = NULL;
+	}
     listdat.valid = 1;
     listdat.hidden = hidden;
     listdat.nlist = nlist;