1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-12 18:46:16 +02:00

unposted: improve 20150 by setting pointer to NULL

This commit is contained in:
Peter Stephenson 2004-07-12 10:05:46 +00:00
parent def0167e34
commit aad11eb618
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-07-12 Peter Stephenson <pws@csr.com>
* unposted: improve 20150 by setting pointer to NULL when
freed.
2004-07-11 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 20150: Src/Zle/compresult.c: repost of ancient attempt

10
NEWS
View File

@ -5,6 +5,16 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
Changes since zsh version 4.2.0
-------------------------------
- The glob qualifier F indicates a non-empty directory. Hence *(F)
indicates all subdirectories with entries, *(/^F) means all
subdirectories with non entries.
- fc -p and fc -P provide push/pop for the status of the shell's
history (both internal and using the history file). With automatic
scoping (fc -ap) it becomes easy to use a temporary history in a
function. This has been added to the calculator function zcalc to make
its internal history work more seamlessly.
- A new `try block' and `always block' syntax has been introduced
to make it easier to ensure the shell runs important tidy-up code
in the event of an error. It also runs after a break, continue, or

View File

@ -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;