mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gsubprocess: Add a missing va_end() call
Coverity issues: #1214070, #1214069 https://bugzilla.gnome.org/show_bug.cgi?id=730278
This commit is contained in:
parent
f4ae0cbf9a
commit
e1243d11f0
@ -686,6 +686,7 @@ g_subprocess_new (GSubprocessFlags flags,
|
||||
while ((arg = va_arg (ap, const gchar *)))
|
||||
g_ptr_array_add (args, (gchar *) arg);
|
||||
g_ptr_array_add (args, NULL);
|
||||
va_end (ap);
|
||||
|
||||
result = g_subprocess_newv ((const gchar * const *) args->pdata, flags, error);
|
||||
|
||||
|
@ -703,6 +703,7 @@ g_subprocess_launcher_spawn (GSubprocessLauncher *launcher,
|
||||
g_ptr_array_add (args, (gchar *) arg);
|
||||
|
||||
g_ptr_array_add (args, NULL);
|
||||
va_end (ap);
|
||||
|
||||
result = g_subprocess_launcher_spawnv (launcher, (const gchar * const *) args->pdata, error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user