1 |
idl0r 10/11/03 17:13:19 |
2 |
|
3 |
Added: battery_segfault.patch |
4 |
Log: |
5 |
Revision bump, fixes bug 343963, thanks to Andrew Brouwers <abrouwers@×××××.com>. Remove old ebuilds. |
6 |
|
7 |
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-misc/tint2/files/battery_segfault.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/tint2/files/battery_segfault.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/tint2/files/battery_segfault.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: battery_segfault.patch |
16 |
=================================================================== |
17 |
Index: battery.c |
18 |
=================================================================== |
19 |
--- src/battery/battery.c (revision 575) |
20 |
+++ src/battery/battery.c (revision 576) |
21 |
@@ -194,8 +194,14 @@ |
22 |
} |
23 |
g_free(path2); |
24 |
} |
25 |
+ |
26 |
+ path_current_now = g_build_filename(battery_dir, "power_now", NULL); |
27 |
+ if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) { |
28 |
+ g_free(path_current_now); |
29 |
+ path_current_now = g_build_filename(battery_dir, "current_now", NULL); |
30 |
+ } |
31 |
+ |
32 |
if (path_energy_now && path_energy_full) { |
33 |
- path_current_now = g_build_filename(battery_dir, "current_now", NULL); |
34 |
path_status = g_build_filename(battery_dir, "status", NULL); |
35 |
|
36 |
// check file |