From e25e0f9f193da79f2ae455a60f7f745c709d04ab Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Thu, 26 Jul 2007 17:40:28 +0000 Subject: Fix crash (reported by Adel Gadllah). --- hardinfo2/arch/linux/common/sensors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardinfo2/arch/linux/common/sensors.h b/hardinfo2/arch/linux/common/sensors.h index bc84014b..1c4fd69f 100644 --- a/hardinfo2/arch/linux/common/sensors.h +++ b/hardinfo2/arch/linux/common/sensors.h @@ -254,7 +254,7 @@ static void read_sensors_acpi(void) if ((tz = g_dir_open(path_tz, 0, NULL))) { const gchar *entry; - gchar *temp = ""; + gchar *temp = g_strdup(""); while ((entry = g_dir_read_name(tz))) { -- cgit v1.2.3