This is an automated email from the git hooks/post-receive script. timystery pushed a commit to branch master in repository panel-plugins/xfce4-sensors-plugin.
commit c6d907dfb1057b6e3fbaed40b33e4517004a5f00 Author: Fabian <[email protected]> Date: Wed Apr 30 00:28:38 2014 +0200 fixed bug 9962 --- lib/acpi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/acpi.c b/lib/acpi.c index c4c39a3..98fde2a 100644 --- a/lib/acpi.c +++ b/lib/acpi.c @@ -289,8 +289,8 @@ int read_battery_zone (t_chip *chip) #endif DBG ("filename=%s\n", filename); file = fopen (filename, "r"); + chipfeature = g_new0 (t_chipfeature, 1); if (file) { - chipfeature = g_new0 (t_chipfeature, 1); chipfeature->address = chip->chip_features->len; chipfeature->devicename = g_strdup (de->d_name); @@ -367,6 +367,10 @@ int read_battery_zone (t_chip *chip) continue; /* because, what would we want to do with only a maxval and no real value inside? */ } + /* + * if no files found at all + * g_free(chipfeature); + */ g_free (filename); @@ -722,4 +726,3 @@ get_acpi_value (char *filename) /* Have read the data */ return g_strdup (p); } - -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
