From 0347b1043d64203459960b3bfcac17f86c14399b Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 20 Mar 2005 19:08:58 +0000 Subject: [PATCH] terminate the nlist --- src/os/darwin/darwin_sigar.c | 1 + 1 file changed, 1 insertion(+) 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; }