mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: pass-through when there are no matches
This commit is contained in:
@ -277,7 +277,14 @@ sysprof_mount_namespace_translate (SysprofMountNamespace *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strv->len == 0)
|
if (strv->len == 0)
|
||||||
return NULL;
|
{
|
||||||
|
/* Try to passthrough the path in case we had no matches just to give
|
||||||
|
* things a chance to decode. This can happen if we never recorded
|
||||||
|
* the contents of /proc/$$/mountinfo.
|
||||||
|
*/
|
||||||
|
char *copy = g_strdup (file);
|
||||||
|
g_array_append_val (strv, copy);
|
||||||
|
}
|
||||||
|
|
||||||
return (char **)g_array_free (g_steal_pointer (&strv), FALSE);
|
return (char **)g_array_free (g_steal_pointer (&strv), FALSE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user