Prevent access to an uninitialized variable
The "-h" option may access an uninitialized value. Prevent it by properly initializing the value. CID: 1006559
This commit is contained in:
parent
872d2d9276
commit
484f578134
@ -178,7 +178,7 @@ main(int argc, char *argv[])
|
||||
KINFO *kinfo = NULL, *next_KINFO;
|
||||
KINFO_STR *ks;
|
||||
struct varent *vent;
|
||||
struct winsize ws;
|
||||
struct winsize ws = { .ws_row = 0 };
|
||||
const char *nlistf, *memf, *fmtstr, *str;
|
||||
char *cols;
|
||||
int all, ch, elem, flag, _fmt, i, lineno, linelen, left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user