]> git.sur5r.net Git - i3/i3status/commitdiff
initialize variables to fix compiler warning
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Aug 2011 22:33:56 +0000 (00:33 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 25 Aug 2011 22:33:56 +0000 (00:33 +0200)
src/print_cpu_usage.c

index 544d6cff11b8f2277bfa3042387bb70736eff558..143cf400e5ed64721d0df5c4b52503df6941e900 100644 (file)
@@ -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)