[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix potential uninitialized variable

noreply at xfce.org noreply at xfce.org
Sun Apr 13 19:39:36 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 6efb453da4050aea8fc7f84105061e8392e69c1f
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Apr 13 15:35:30 2014 +0300

    Fix potential uninitialized variable
---
 src/xfpm-battery.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xfpm-battery.c b/src/xfpm-battery.c
index dc38d32..603c8de 100644
--- a/src/xfpm-battery.c
+++ b/src/xfpm-battery.c
@@ -513,6 +513,8 @@ xfpm_battery_check_charge (XfpmBattery *battery)
 	charge = XFPM_BATTERY_CHARGE_LOW;
     else if ( battery->priv->percentage <= critical_level )
 	charge = XFPM_BATTERY_CHARGE_CRITICAL;
+    else
+	charge = XFPM_BATTERY_CHARGE_UNKNOWN;
 
     if ( charge != battery->priv->charge)
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list