diff options
-rw-r--r-- | gio/gsubprocesslauncher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c index d6463e3ed..96f8454fe 100644 --- a/gio/gsubprocesslauncher.c +++ b/gio/gsubprocesslauncher.c @@ -701,6 +701,8 @@ g_subprocess_launcher_spawn (GSubprocessLauncher *launcher, while ((arg = va_arg (ap, const gchar *))) g_ptr_array_add (args, (gchar *) arg); + g_ptr_array_add (args, NULL); + result = g_subprocess_launcher_spawnv (launcher, (const gchar * const *) args->pdata, error); g_ptr_array_free (args, TRUE); |