0104-top: Initialize cp in task_show().
Found no problematic case at the moment, but this is a cheap just-in-case.
This commit is contained in:
parent
8b29093481
commit
f02fff62fb
@ -5196,7 +5196,7 @@ static const char *task_show (const WIN_t *q, struct pids_stack *p) {
|
|||||||
if (Rc.mode_altscr) rp = scat(rp, " ");
|
if (Rc.mode_altscr) rp = scat(rp, " ");
|
||||||
|
|
||||||
for (x = 0; x < q->maxpflgs; x++) {
|
for (x = 0; x < q->maxpflgs; x++) {
|
||||||
const char *cp;
|
const char *cp = NULL;
|
||||||
FLG_t i = q->procflgs[x];
|
FLG_t i = q->procflgs[x];
|
||||||
#define S Fieldstab[i].scale // these used to be variables
|
#define S Fieldstab[i].scale // these used to be variables
|
||||||
#define W Fieldstab[i].width // but it's much better if we
|
#define W Fieldstab[i].width // but it's much better if we
|
||||||
|
Loading…
Reference in New Issue
Block a user