mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-28 02:46:03 +02:00
30391: tweak to ignore DISABLED flag in new hash-based arrayuniq()
This commit is contained in:
parent
b1f58eb766
commit
653abd34a9
|
@ -1,3 +1,9 @@
|
|||
2012-04-13 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 30391: Src/params.c: New hash-based arrayuniq() doesn't
|
||||
care about (or set the flag correctly for) disabled hash nodes,
|
||||
so we need to ignore that flag.
|
||||
|
||||
2012-04-12 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 30388, 30389 (Stephane): Functions/Misc/zargs: handle
|
||||
|
@ -16169,5 +16175,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5623 $
|
||||
* $Revision: 1.5624 $
|
||||
*****************************************************
|
||||
|
|
|
@ -3532,7 +3532,7 @@ arrayuniq(char **x, int freeok)
|
|||
}
|
||||
|
||||
for (it = x, write_it = x; *it;) {
|
||||
if (! gethashnode(ht, *it)) {
|
||||
if (! gethashnode2(ht, *it)) {
|
||||
HashNode new_node = zhalloc(sizeof(struct hashnode));
|
||||
if (!new_node) {
|
||||
/* Oops, out of heap memory, no way to recover */
|
||||
|
|
Loading…
Reference in New Issue