summaryrefslogtreecommitdiff
path: root/lib/sensors-applet-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sensors-applet-plugin.c')
-rw-r--r--lib/sensors-applet-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sensors-applet-plugin.c b/lib/sensors-applet-plugin.c
index 96b47c6..acef5ef 100644
--- a/lib/sensors-applet-plugin.c
+++ b/lib/sensors-applet-plugin.c
@@ -132,7 +132,7 @@ void sensors_applet_plugin_add_sensor_with_limits(GList **sensors,
SensorsAppletSensorInfo *info;
- info = g_malloc0(sizeof(*info));
+ info = g_new0 (SensorsAppletSensorInfo, 1);
info->path = g_strdup(path);
info->id = g_strdup(id);