]> granicus.if.org Git - procps-ng/commit
lib: Initialise uptime variables
authorCraig Small <csmall@dropbear.xyz>
Tue, 2 Nov 2021 06:23:37 +0000 (17:23 +1100)
committerCraig Small <csmall@dropbear.xyz>
Tue, 2 Nov 2021 06:23:37 +0000 (17:23 +1100)
commit10824b0655f3eeaeac87ae6e4e3881429a237f3e
treec5f0950b72c33dfa1bc12718d5f2a9efe93a5e1f
parent2e0e865ca5f8252b84571b23bb7be0fa76faacfb
lib: Initialise uptime variables

upminutes and uphours could both not get initialised in the
procps_uptime_sprint_short() function.

Error was probably introduced at the referenced commit.

References:
 Coverity 240787 Uninitialized scalar variable
 Coverity 240776 Uninitialized scalar variable
 commit 0496b39876d569fe1cecb76ad5ef212cd14c0374

Signed-off-by: Craig Small <csmall@dropbear.xyz>
proc/uptime.c