libsysprof-profile: set default environment for spawnable

This commit is contained in:
Christian Hergert
2023-06-06 16:45:02 -07:00
parent 44e9da2692
commit 3d7a6ca43b

View File

@ -123,6 +123,8 @@ sysprof_spawnable_init (SysprofSpawnable *self)
{
self->next_fd = 3;
self->environ = g_get_environ ();
self->argv = g_ptr_array_new_with_free_func (g_free);
g_ptr_array_add (self->argv, NULL);