File xfce4-sensors-plugin-1.0.0-fix-uninitialized-memory.patch of Package xfce4-panel-plugins

diff -ur xfce4-sensors-plugin-1.0.0.orig/lib/sensors-interface-common.c xfce4-sensors-plugin-1.0.0/lib/sensors-interface-common.c
--- xfce4-sensors-plugin-1.0.0.orig/lib/sensors-interface-common.c	2010-03-27 16:11:48.000000000 +0100
+++ xfce4-sensors-plugin-1.0.0/lib/sensors-interface-common.c	2011-01-07 12:27:27.000000000 +0100
@@ -43,7 +43,7 @@
 
     TRACE ("enters sensors_new");
 
-    sensors = g_new (t_sensors, 1);
+    sensors = g_new0 (t_sensors, 1);
     sensors->plugin_config_file = plugin_config_file; /* important as we check against NULL frequently */
 
     /* init xfce sensors stuff width default values */
@@ -69,6 +69,7 @@
 
         chipfeature->address = 0;
         chip->sensorId = g_strdup(_("No sensors found!"));
+        chip->description = g_strdup(_("No sensors found!"));
         chip->num_features = 1;
         chipfeature->color = g_strdup("#000000");
         /* g_free (chipfeature->name); */
openSUSE Build Service is sponsored by