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:
Philip Withnall 2014-05-16 22:09:29 +01:00
parent f4ae0cbf9a
commit e1243d11f0
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);