summaryrefslogtreecommitdiff
path: root/battstat/power-management.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-16 17:13:24 +0300
committerStefano Karapetsas <[email protected]>2014-11-26 09:54:20 +0100
commit5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f (patch)
tree9002f0a320290a516767e181059ee8be18818ca8 /battstat/power-management.c
parentc5e3a3c796cb9397871e6f4da5d9afa454e311a6 (diff)
downloadmate-applets-5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f.tar.bz2
mate-applets-5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f.tar.xz
avoid dereferencing NULL pointer
Closes https://github.com/mate-desktop/mate-applets/pull/114
Diffstat (limited to 'battstat/power-management.c')
-rw-r--r--battstat/power-management.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/battstat/power-management.c b/battstat/power-management.c
index c879bcaa..682f9683 100644
--- a/battstat/power-management.c
+++ b/battstat/power-management.c
@@ -443,7 +443,6 @@ const char *
power_management_initialise (int no_hal, void (*callback) (void))
{
char *err;
- err = g_strdup( ":(" );
#ifdef __linux__
struct stat statbuf;
#endif