use allocated dictionary values - not the stack allocated one
Costa Tsaousis (ktsaou) committed
Jan 22, 2017 at 14:56 UTC
50fe3c321c69fb814f130ecf10e53e8e69a8779e
1 file changed
+1
-1
src/plugin_proc_diskspace.c
+1
-1
@@ -96,7 +96,7 @@ static inline void do_disk_space_stats(struct mountinfo *mi, int update_every) {
96
.rd_inodes_reserved = NULL
97
};
98
99
- dictionary_set(mount_points, mi->mount_point, &mp, sizeof(struct mount_point_metadata));
99
+ m = dictionary_set(mount_points, mi->mount_point, &mp, sizeof(struct mount_point_metadata));
100
}
101
else {
102
do_space = m->do_space;