NETSTAT(1): Fix name list initialization

This commit is contained in:
Sebastian Huber 2017-01-09 08:50:55 +01:00
parent b86b09782a
commit 95a3ba8284

View File

@ -520,6 +520,9 @@ main(int argc, char *argv[])
if (xflag && Tflag)
xo_errx(1, "-x and -T are incompatible, pick one.");
/* Load all necessary kvm symbols */
kresolve_list(nl);
if (Bflag) {
if (!live)
usage();
@ -602,9 +605,6 @@ main(int argc, char *argv[])
exit(0);
}
/* Load all necessary kvm symbols */
kresolve_list(nl);
if (tp) {
xo_open_container("statistics");
printproto(tp, tp->pr_name, &first);