diff options
author | rbuj <[email protected]> | 2020-06-10 13:27:39 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-06-11 12:59:06 +0200 |
commit | 7366a41a054b54a3bbeb9d039ba2462c9772724b (patch) | |
tree | 8fdf24ee0792ed2ecfd635803efb5aacffd49a57 /plugins/udisks2 | |
parent | c97ade764ed2c0f69beeb77663d7143e429fa6e9 (diff) | |
download | mate-sensors-applet-7366a41a054b54a3bbeb9d039ba2462c9772724b.tar.bz2 mate-sensors-applet-7366a41a054b54a3bbeb9d039ba2462c9772724b.tar.xz |
Replace g_malloc0 with g_new0 and g_strdup
Diffstat (limited to 'plugins/udisks2')
-rw-r--r-- | plugins/udisks2/udisks2-plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/udisks2/udisks2-plugin.c b/plugins/udisks2/udisks2-plugin.c index ce648b1..f2e23c6 100644 --- a/plugins/udisks2/udisks2-plugin.c +++ b/plugins/udisks2/udisks2-plugin.c @@ -335,7 +335,7 @@ syslog(LOG_ERR, "Found udisks2 device temp: '%f'\n", temp); * save data */ if (smartenabled) { - info = g_malloc0 (sizeof (DevInfo)); + info = g_new0 (DevInfo, 1); if (NULL == devices) { devices = g_hash_table_new (g_str_hash, g_str_equal); } |