summaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/hlgroup.c3
1 files changed, 2 insertions, 1 deletions
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;