diff --git a/proc/uptime.c b/proc/uptime.c index 088cd68a..b4d9ba9d 100644 --- a/proc/uptime.c +++ b/proc/uptime.c @@ -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;