From f02fff62fb2d1d43bc8bcf8d725ce6863fdc4b64 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 0104-top: Initialize cp in task_show(). Found no problematic case at the moment, but this is a cheap just-in-case. --- top/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/top/top.c b/top/top.c index 9bf8e54e..56b3d490 100644 --- a/top/top.c +++ b/top/top.c @@ -5196,7 +5196,7 @@ static const char *task_show (const WIN_t *q, struct pids_stack *p) { if (Rc.mode_altscr) rp = scat(rp, " "); for (x = 0; x < q->maxpflgs; x++) { - const char *cp; + const char *cp = NULL; FLG_t i = q->procflgs[x]; #define S Fieldstab[i].scale // these used to be variables #define W Fieldstab[i].width // but it's much better if we