mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: skip when no writer is available
This commit is contained in:
@ -350,6 +350,9 @@ sysprof_proc_source_populate (SysprofProcSource *self,
|
||||
g_assert (info != NULL);
|
||||
g_assert (g_variant_is_of_type (info, G_VARIANT_TYPE ("aa{sv}")));
|
||||
|
||||
if (self->writer == NULL)
|
||||
return;
|
||||
|
||||
if (!(mounts = proc_readlines ("/proc/mounts")))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user