]> arthur.barton.de Git - netdata.git/commitdiff
use allocated dictionary values - not the stack allocated one
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 22 Jan 2017 12:56:18 +0000 (14:56 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 22 Jan 2017 12:56:18 +0000 (14:56 +0200)
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;