]> granicus.if.org Git - procps-ng/commit
vmstat: Null the diskstats pointer
authorCraig Small <csmall@dropbear.xyz>
Sun, 13 Sep 2020 00:25:19 +0000 (10:25 +1000)
committerCraig Small <csmall@dropbear.xyz>
Sun, 13 Sep 2020 00:25:19 +0000 (10:25 +1000)
commitb0e7a52f650f7511f3de63f5d1f76f19a38bb227
treef9c7a27462851f809ea12df0b48ef9582a8655aa
parentd3203d99dd7f4508447ea3b4b056a9d134229d10
vmstat: Null the diskstats pointer

I'm not sure why, but the make check will now fail for vmstat

Running ./vmstat.test/vmstat.exp ...
FAIL: vmstat disk information (-d option)

With the _new function returning the error.
In vmstat all other structures are set to NULL before calling _new
except the diskstat ones. This has been corrected.
vmstat.c