library: fix new and unref pids test
The original test did not NULL the unallocated info pointer. This was incorrectly calling the procps_pids_new() function. Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
parent
acb83a2b74
commit
d2b29312bb
@ -40,7 +40,7 @@ int check_pids_new_toomany(void *data)
|
||||
|
||||
int check_pids_new_and_unref(void *data)
|
||||
{
|
||||
struct procps_pidsinfo *info;
|
||||
struct procps_pidsinfo *info = NULL;
|
||||
testname = "procps_pids new then unref";
|
||||
return ( (procps_pids_new(&info, items, 2) == 0) &&
|
||||
(procps_pids_unref(&info) == 0) &&
|
||||
|
Loading…
Reference in New Issue
Block a user