mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02: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
|
@ -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>
|
2004-07-11 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||||
|
|
||||||
* 20150: Src/Zle/compresult.c: repost of ancient attempt
|
* 20150: Src/Zle/compresult.c: repost of ancient attempt
|
||||||
|
|
10
NEWS
10
NEWS
|
@ -5,6 +5,16 @@ CHANGES FROM PREVIOUS VERSIONS OF ZSH
|
||||||
Changes since zsh version 4.2.0
|
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
|
- A new `try block' and `always block' syntax has been introduced
|
||||||
to make it easier to ensure the shell runs important tidy-up code
|
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
|
in the event of an error. It also runs after a break, continue, or
|
||||||
|
|
|
@ -1770,7 +1770,10 @@ calclist(int showall)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (g = amatches; g; g = g->next)
|
for (g = amatches; g; g = g->next)
|
||||||
|
{
|
||||||
zfree(g->widths, 0);
|
zfree(g->widths, 0);
|
||||||
|
g->widths = NULL;
|
||||||
|
}
|
||||||
listdat.valid = 1;
|
listdat.valid = 1;
|
||||||
listdat.hidden = hidden;
|
listdat.hidden = hidden;
|
||||||
listdat.nlist = nlist;
|
listdat.nlist = nlist;
|
||||||
|
|
Loading…
Reference in a new issue