[gnome-power-manager] trivial: correct a small buglet that I think is impossible to trigger, spotted by clang



commit 2f465ea58e26c69e7c7949d786ff793c5f0b2c7f
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jun 23 09:21:37 2010 +0100

    trivial: correct a small buglet that I think is impossible to trigger, spotted by clang

 src/gpm-engine.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gpm-engine.c b/src/gpm-engine.c
index fa237fd..223e2c2 100644
--- a/src/gpm-engine.c
+++ b/src/gpm-engine.c
@@ -617,10 +617,10 @@ static UpDevice *
 gpm_engine_update_composite_device (GpmEngine *engine, UpDevice *original_device)
 {
 	guint i;
-	gdouble percentage;
-	gdouble energy;
-	gdouble energy_full;
-	gdouble energy_rate;
+	gdouble percentage = 0.0;
+	gdouble energy = 0.0;
+	gdouble energy_full = 0.0;
+	gdouble energy_rate = 0.0;
 	gdouble energy_total = 0.0;
 	gdouble energy_full_total = 0.0;
 	gdouble energy_rate_total = 0.0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]