From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 (+0000) Subject: top: Initialize cp in task_show(). X-Git-Tag: v3.3.15~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6be15d3cb3b1353392374f10f79de2e1d85228e;p=procps-ng top: Initialize cp in task_show(). Found no problematic case at the moment, but this is a cheap just-in-case. --- diff --git a/top/top.c b/top/top.c index 01978e76..de58d655 100644 --- a/top/top.c +++ b/top/top.c @@ -5667,7 +5667,7 @@ static const char *task_show (const WIN_t *q, const proc_t *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