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:
Pedro F. Giffuni 2015-01-31 15:41:01 +00:00
parent 872d2d9276
commit 484f578134
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277979

View File

@ -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;