From dfb61dfceaa72dda477a5433a193da316dccef7f Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 26 Jun 2022 14:48:55 +0200 Subject: Fixed undefined attribute handling --- nest/rt-attr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest') diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 35f85274..ed3aaf01 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -727,7 +727,7 @@ ea_do_prune(ea_list *e) /* Now s0 is the most recent version, s[-1] the oldest one */ /* Drop undefs unless this is a true overlay */ - if (s0->undef && !e->next) + if (s0->undef && (s[-1].undef || !e->next)) continue; /* Copy the newest version to destination */ @@ -1081,7 +1081,7 @@ ea_show(struct cli *c, const eattr *e) *pos++ = ' '; if (e->undef) - bsprintf(pos, "undefined (should not happen)"); + return; else if (cls->format) cls->format(e, buf, end - buf); else -- cgit v1.2.3