[Xfce4-commits] [xfce/xfce4-power-manager] 01/02: coverity: cwe-457, uninitialized pointers

noreply at xfce.org noreply at xfce.org
Wed Feb 18 18:15:15 CET 2015


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 a721103ab5ce5a5126e85cffcec2688adb38aed7
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Wed Feb 18 20:04:24 2015 +0300

    coverity: cwe-457, uninitialized pointers
---
 src/xfpm-power.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index 07085ff..b071da7 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -207,7 +207,7 @@ check_for_consolekit2 (XfpmPower *power)
 static void
 xfpm_power_check_polkit_auth (XfpmPower *power)
 {
-    const char *suspend, *hibernate;
+    const char *suspend = NULL, *hibernate = NULL;
     if (LOGIND_RUNNING())
     {
 	XFPM_DEBUG ("using logind suspend backend");

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


More information about the Xfce4-commits mailing list