]> granicus.if.org Git - procps-ng/commit
library: eliminate redundant assignment, <meminfo> api
authorJim Warner <james.warner@comcast.net>
Thu, 14 Apr 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 17 Apr 2022 00:43:19 +0000 (10:43 +1000)
commitaf443770e3ecc57e6bacad025150f3888ca24e6c
tree82e9fec3070bd607a543e13472d111c676f1eb7e
parent5edeabbd4af0dc34262a6ef3333362d8216c467a
library: eliminate redundant assignment, <meminfo> api

With the memset to zero of a 'new' meminfo_data struct
near the beginning of the meminfo_read_failed function
there's never a need to later set anything in it to 0.

[ who knows, our patch might even coax opensuse into ]
[ reevaluating that 4.0.0 'overflow' guy named below ]

Reference(s):
. overflow: 'procps-ng-4.0.0-integer-overflow.patch'

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/meminfo.c