netstar pushed a commit to branch master.

http://git.enlightenment.org/apps/evisum.git/commit/?id=39d22d66ea0569f7fb6cfe77a3ffe5797443c467

commit 39d22d66ea0569f7fb6cfe77a3ffe5797443c467
Author: Alastair Poole <[email protected]>
Date:   Mon May 11 17:00:33 2020 +0100

    macos: dont return if we cannot get workqueueinfo.
    
    Set the memory to zero here when it's unavailable.
---
 src/bin/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/process.c b/src/bin/process.c
index 1e373fa..3362b86 100644
--- a/src/bin/process.c
+++ b/src/bin/process.c
@@ -671,7 +671,7 @@ proc_info_by_pid(int pid)
 
    size = proc_pidinfo(pid, PROC_PIDWORKQUEUEINFO, 0, &workqueue, 
sizeof(workqueue));
    if (size != sizeof(workqueue))
-     return NULL;
+     memset(&workqueue, 0, sizeof(struct proc_workqueueinfo));
 
    Proc_Info *p = calloc(1, sizeof(Proc_Info));
    if (!p) return NULL;

-- 


Reply via email to