diff options
| author | Oliver Kiddle <opk@zsh.org> | 2024-03-20 23:40:23 +0100 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2024-03-20 23:40:23 +0100 |
| commit | 7139d3b286bba5874548eb6faca25cf9bb90f7be (patch) | |
| tree | 9a780eb6a8054d7e6419113b1f88ea2be61e3933 | |
| parent | unposted: remove reference to fp_PROG_CC_STDC macro which was removed in 52750 (diff) | |
| download | zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.tar zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.tar.gz zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.tar.bz2 zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.tar.lz zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.tar.xz zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.tar.zst zsh-7139d3b286bba5874548eb6faca25cf9bb90f7be.zip | |
52783: allow for unset hash element
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | Src/Modules/hlgroup.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,7 @@ 2024-03-20 Oliver Kiddle <opk@zsh.org> + * 52783: Src/Modules/hlgroup.c: allow for unset hash element + * unposted: configure.ac: remove reference to fp_PROG_CC_STDC macro which was removed in 52750 diff --git a/Src/Modules/hlgroup.c b/Src/Modules/hlgroup.c index 9c0aedcf8..9b656c24e 100644 --- a/Src/Modules/hlgroup.c +++ b/Src/Modules/hlgroup.c @@ -91,7 +91,8 @@ getgroup(const char *name, int sgr) if (!(v = getvalue(&vbuf, &var, 0)) || PM_TYPE(v->pm->node.flags) != PM_HASHED || !(hlg = v->pm->gsu.h->getfn(v->pm)) || - !(hn = gethashnode2(hlg, name))) + !(hn = gethashnode2(hlg, name)) || + (((Param) hn)->node.flags & PM_UNSET)) { pm->u.str = dupstring(""); pm->node.flags |= PM_UNSET; |
