Gentoo Archives: gentoo-commits

From: "Victor Ostorga (vostorga)" <vostorga@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in lxde-base/lxpanel/files: lxpanel-0.5.3-battery.patch
Date: Sat, 29 Aug 2009 08:38:20
Message-Id: E1MhOH4-00055G-6h@stork.gentoo.org
1 vostorga 09/08/29 13:47:22
2
3 Added: lxpanel-0.5.3-battery.patch
4 Log:
5 Fixing segfault when battery applet is enabled but battery removed , bug #281093
6 (Portage version: 2.1.6.13/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 lxde-base/lxpanel/files/lxpanel-0.5.3-battery.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/lxde-base/lxpanel/files/lxpanel-0.5.3-battery.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/lxde-base/lxpanel/files/lxpanel-0.5.3-battery.patch?rev=1.1&content-type=text/plain
13
14 Index: lxpanel-0.5.3-battery.patch
15 ===================================================================
16 --- trunk/lxpanel/src/plugins/batt/batt_sys.c 2009/06/16 22:09:10 1617
17 +++ trunk/lxpanel/src/plugins/batt/batt_sys.c 2009/08/19 07:40:45 1950
18 @@ -271,8 +271,10 @@
19 if ( b->type_battery == TRUE )
20 break;
21 /* ignore non-batteries */
22 - else
23 + else {
24 g_free(b);
25 + b = NULL;
26 + }
27 }
28 g_dir_close( dir );
29 return b;