From bc3de8074e04b11dc35ca99f785c0404016cc78b Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Fri, 6 Feb 2026 17:34:39 +0200 Subject: cli: clear show sessions cell buffer to avoid stale output Co-Authored-By: Claude Opus 4.6 --- accel-pppd/cli/show_sessions.c | 1 + 1 file changed, 1 insertion(+) 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