From fbb4a288d29950be3ae289df130a5ced15658ae8 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 10 Jun 2020 13:27:39 +0200 Subject: Replace g_malloc0 with g_new0 and g_strdup --- lib/sensors-applet-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.1