0.3.1: Fix OpenBSD Bug.

This commit is contained in:
Alastair Poole 2020-03-22 13:44:48 +00:00
parent c510bf0343
commit d11ea1b84c
3 changed files with 9 additions and 3 deletions

6
NEWS
View File

@ -1,3 +1,9 @@
============
Evisum 0.3.1
============
* Fix OpenBSD process init.
============
Evisum 0.3.0
============

View File

@ -1 +1 @@
0.3.0
0.3.1

View File

@ -333,7 +333,7 @@ proc_info_by_pid(int pid)
if (count == 0) return NULL;
pagesize = getpagesize();
Proc_Stats *p = malloc(sizeof(Proc_Stats));
Proc_Stats *p = calloc(1, sizeof(Proc_Stats));
if (!p) return NULL;
p->pid = kp->p_pid;
@ -381,7 +381,7 @@ _process_list_openbsd_get(void)
for (int i = 0; i < pid_count; i++)
{
p = malloc(sizeof(Proc_Stats));
p = calloc(1, sizeof(Proc_Stats));
if (!p) return NULL;
p->pid = kp[i].p_pid;