diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-08-26 00:33:56 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-08-26 00:33:56 +0200 |
commit | 7870fdae8652dcb67c09dc57d3588ca6bb14dbf2 (patch) | |
tree | 60d0a9e302c3e67577bce4d150d12849e8a529c8 /src | |
parent | cc1457c4f0f4cccb8bec326dd0bb13082ac806e6 (diff) |
initialize variables to fix compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/print_cpu_usage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c index 544d6cf..143cf40 100644 --- a/src/print_cpu_usage.c +++ b/src/print_cpu_usage.c @@ -23,7 +23,7 @@ static int prev_idle = 0; void print_cpu_usage(const char *format) { const char *walk; char buf[1024]; - int curr_user, curr_nice, curr_system, curr_idle, curr_total; + int curr_user = 0, curr_nice = 0, curr_system = 0, curr_idle = 0, curr_total; int diff_idle, diff_total, diff_usage; #if defined(LINUX) |