summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-06-10 13:27:39 +0200
committerraveit65 <[email protected]>2020-06-11 15:42:07 +0200
commitfbb4a288d29950be3ae289df130a5ced15658ae8 (patch)
treece546b6be03e5c6fbf08bd2a6cea2a053b5d5de8 /lib
parentcb3dfb26f1ae0f23f1e9ad67a35112ea171a1a90 (diff)
downloadmate-sensors-applet-fbb4a288d29950be3ae289df130a5ced15658ae8.tar.bz2
mate-sensors-applet-fbb4a288d29950be3ae289df130a5ced15658ae8.tar.xz
Replace g_malloc0 with g_new0 and g_strdup
Diffstat (limited to 'lib')
-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);