diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-02-06 17:34:39 +0200 |
|---|---|---|
| committer | Denys Fedoryshchenko <denys.f@collabora.com> | 2026-02-06 17:34:54 +0200 |
| commit | bc3de8074e04b11dc35ca99f785c0404016cc78b (patch) | |
| tree | 779a53fc0dcb62fb3a67b0df3f92523c1cfe3817 | |
| parent | 7ad4f3974448ddd890664e95b2a17feff3b4f7d3 (diff) | |
| download | accel-ppp-bc3de8074e04b11dc35ca99f785c0404016cc78b.tar.gz accel-ppp-bc3de8074e04b11dc35ca99f785c0404016cc78b.zip | |
cli: clear show sessions cell buffer to avoid stale output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| -rw-r--r-- | accel-pppd/cli/show_sessions.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
