mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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 (info != NULL);
|
||||||
g_assert (g_variant_is_of_type (info, G_VARIANT_TYPE ("aa{sv}")));
|
g_assert (g_variant_is_of_type (info, G_VARIANT_TYPE ("aa{sv}")));
|
||||||
|
|
||||||
|
if (self->writer == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!(mounts = proc_readlines ("/proc/mounts")))
|
if (!(mounts = proc_readlines ("/proc/mounts")))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user