From 6c5d80afcfac2e5008ce41bb81282d817023fc11 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Wed, 28 Jan 2026 15:09:17 +0200 Subject: cli: clear show sessions cell buffer to avoid stale output --- accel-pppd/cli/show_sessions.c | 1 + 1 file changed, 1 insertion(+) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index ca2ec68d..75649c4a 100644 --- a/accel-pppd/cli/show_sessions.c +++ b/accel-pppd/cli/show_sessions.c @@ -247,6 +247,7 @@ static int show_ses_exec(const char *cmd, char * const *f, int f_cnt, void *cli) goto oom; cell->col = col; list_add_tail(&cell->entry, &row->cell_list); + cell->buf[0] = 0; col->column->print(ses, cell->buf); n = strlen(cell->buf); if (n > col->width) -- cgit v1.2.3