mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 05:21:00 +01:00
unposted: improve 20150 by setting pointer to NULL
This commit is contained in:
parent
def0167e34
commit
aad11eb618
3 changed files with 18 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue