[Pkg-xfce-devel] Bug#519181: Bug#519181: xfce4-sensors-plugin: Patch providing working example code fix

Tino Keitel tino.keitel+xfce at tikei.de
Mon Mar 23 06:14:03 UTC 2009

On Fri, Mar 20, 2009 at 17:49:10 -0400, Dave Witbrodt wrote:
> Package: xfce4-sensors-plugin
> Version:
> Followup-For: Bug #519181
> Attached is a patch showing changes I made which fix the crash problem on my
> own machine.  I created the patch like this:


in your previous mail, you wrote that the segfault is caused by calls
to g_free() with an uninitialized checktext variable. Without looking
at the code, wouldn't just initializing cleartext with NULL be a much
smaller fix? I assume that g_free() behaves like free() here ("If ptr
is NULL, no operation is performed"), at least it does so according to
the glib documentation: "If mem is NULL it simply returns".


More information about the Pkg-xfce-devel mailing list