Package: lxpanel Version: 0.5.6-1 Severity: normal after some fighting I managed to build a batt.so with debugging symbols...
-- System Information: Debian Release: 6.0.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-bpo.2-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lxpanel depends on: ii libasound2 1.0.23-2.1 shared library for ALSA applicatio ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-6 The Cairo 2D vector graphics libra ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.4.2-2.1+squeeze4 FreeType 2 font engine, shared lib ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface ii libmenu-cache1 0.3.2-2 an implementation of the freedeskt ii libpango1.0-0 1.28.3-1+squeeze2 Layout and rendering of internatio ii libx11-6 2:1.3.3-4 X11 client-side library ii lxmenu-data 0.1.1-1 freedesktop.org menu specification ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages lxpanel recommends: ii manpages-dev 3.27-1 Manual pages about using GNU/Linux Versions of packages lxpanel suggests: ii chromium-br 6.0.472.63~r59945-5+squeeze6 Chromium browser ii google-chro 18.0.1025.162-r131933 The web browser from Google ii iceweasel [ 3.5.16-13 Web browser based on Firefox ii konqueror [ 4:4.4.5-2 advanced file manager, web browser ii menu 2.1.44 generates programs menu for all me ii w3m [www-br 0.5.2-9 WWW browsable pager with excellent -- no debconf information
--- lxpanel-0.5.6/src/plugins/batt/batt_sys.c 2012-04-27 00:33:25.000000000 +0200 +++ lxpanel-0.5.6-new/src/plugins/batt/batt_sys.c 2012-04-27 00:32:35.242721100 +0200 @@ -287,6 +287,9 @@ gboolean battery_is_charging( battery *b ) { + if (!b->state){ + return 0; // zero if state is null + } return ( strcasecmp( b->state, "Unknown" ) == 0 || strcasecmp( b->state, "Full" ) == 0 || strcasecmp( b->state, "Charging" ) == 0 );