From 3d7a6ca43b780f4452cfb4817d3151c9aa0b9765 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 6 Jun 2023 16:45:02 -0700 Subject: [PATCH] libsysprof-profile: set default environment for spawnable --- src/libsysprof-profile/sysprof-spawnable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsysprof-profile/sysprof-spawnable.c b/src/libsysprof-profile/sysprof-spawnable.c index 733b0080..4c9e0a56 100644 --- a/src/libsysprof-profile/sysprof-spawnable.c +++ b/src/libsysprof-profile/sysprof-spawnable.c @@ -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);