terminate the nlist

This commit is contained in:
Doug MacEachern 2005-03-20 19:08:58 +00:00
parent d4eb411774
commit 0347b1043d
1 changed files with 1 additions and 0 deletions

View File

@ -1562,6 +1562,7 @@ int sigar_proc_port_get(sigar_t *sigar, int protocol,
}
nl[0].n_name = "_tcb"; /* XXX cache */
nl[1].n_name = "";
if (kvm_nlist(sigar->kmem, nl) < 0) {
return errno;
}