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 12:59:06 +0200
commit7366a41a054b54a3bbeb9d039ba2462c9772724b (patch)
tree8fdf24ee0792ed2ecfd635803efb5aacffd49a57 /lib
parentc97ade764ed2c0f69beeb77663d7143e429fa6e9 (diff)
downloadmate-sensors-applet-7366a41a054b54a3bbeb9d039ba2462c9772724b.tar.bz2
mate-sensors-applet-7366a41a054b54a3bbeb9d039ba2462c9772724b.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);