Skip to content
Snippets Groups Projects
Commit f0808209 authored by jim warner's avatar jim warner Committed by Craig Small
Browse files

library: silence the clang warning for 'uptime' module


Reference(s):
proc/uptime.c:191:9: warning: variable 'uphours' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]

Signed-off-by: default avatarJim Warner <james.warner@comcast.net>
parent e99c5abb
No related branches found
No related tags found
No related merge requests found
Pipeline #544656823 passed
......@@ -151,7 +151,7 @@ PROCPS_EXPORT char *procps_uptime_sprint(void)
*/
PROCPS_EXPORT char *procps_uptime_sprint_short(void)
{
int updecades, upyears, upweeks, updays, uphours, upminutes = 0;
int updecades, upyears, upweeks, updays, uphours = 0, upminutes = 0;
int pos = 3;
int comma = 0;
double uptime_secs, idle_secs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment