]> granicus.if.org Git - procps-ng/commit
library: clear rc in procps_loadavg again
authorCraig Small <csmall@dropbear.xyz>
Tue, 31 May 2022 12:03:22 +0000 (22:03 +1000)
committerCraig Small <csmall@dropbear.xyz>
Tue, 31 May 2022 12:03:22 +0000 (22:03 +1000)
commitce0286daca42221f8d4952def6ae437ec584ee4a
tree847b8f8bb7822cbec524aef7eb80e35b41d7c385
parent3111334ddd5b29ef723a06688bd81a5f8eae8322
library: clear rc in procps_loadavg again

During the changes to procps_loadavg I didn't set the initial
value for retval, meaning it was a random number.
It is now correctly intialised to zero.

References:
  commit 8fcd14de18b998647ba47f5b35feb1d85e2d2f08
proc/sysinfo.c