summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nest/rt-attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 0881b61b..049dc72a 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -1376,9 +1376,9 @@ ea_dump_all(void)
void
ea_show_list(struct cli *c, ea_list *eal)
{
- for( ; eal; eal=eal->next)
- for(int i=0; i<eal->count; i++)
- ea_show(c, &eal->attrs[i]);
+ ea_list *n = ea_normalize(eal, 0);
+ for (int i =0; i < n->count; i++)
+ ea_show(c, &n->attrs[i]);
}
/**