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:
Craig Small 2016-06-07 21:13:57 +10:00
parent acb83a2b74
commit d2b29312bb

View File

@ -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) &&