fix crash when no usable mountpoints are found on a system; fixes #2591
Costa Tsaousis (ktsaou) committed
Aug 19, 2017 at 03:16 UTC
d24f7a1aab533cb214a6060576bde186b27ba462
1 file changed
+2
-1
src/plugin_proc_diskspace.c
+2
-1
@@ -373,7 +373,8 @@ void *proc_diskspace_main(void *ptr) {
373
374
if(unlikely(netdata_exit)) break;
375
376
- dictionary_get_all(dict_mountpoints, mount_point_cleanup, NULL);
376
+ if(dict_mountpoints)
377
+ dictionary_get_all(dict_mountpoints, mount_point_cleanup, NULL);
378
379
if(vdo_cpu_netdata) {
380
static RRDSET *stcpu_thread = NULL, *st_duration = NULL;