]> arthur.barton.de Git - netdata.git/blobdiff - src/plugin_proc_diskspace.c
use allocated dictionary values - not the stack allocated one
[netdata.git] / src / plugin_proc_diskspace.c
index 9a395541a5df92795c04e5de956eef0dc654bfea..43e6dd7c5594e19120bb3f8e09171110dd3d9845 100644 (file)
@@ -96,7 +96,7 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
                 .rd_inodes_reserved = NULL
         };
 
-        dictionary_set(mount_points, mi->mount_point, &mp, sizeof(struct mount_point_metadata));
+        m = dictionary_set(mount_points, mi->mount_point, &mp, sizeof(struct mount_point_metadata));
     }
     else {
         do_space = m->do_space;