diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 445f5460..bd098c42 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -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; }