libsysprof-analyze: pass-through when there are no matches

This commit is contained in:
Christian Hergert
2023-05-19 17:30:03 -07:00
parent f1d0d71ee5
commit 9d8096baa6

View File

@ -277,7 +277,14 @@ sysprof_mount_namespace_translate (SysprofMountNamespace *self,
}
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);
}