gsubprocess: Add missing G_GNUC_NULL_TERMINATED attribute

g_subprocess_launcher_spawn() is NULL-terminated, and must have a
non-NULL argv0 specified, so G_GNUC_NULL_TERMINATED is appropriate here.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=780032
This commit is contained in:
Philip Withnall 2017-03-14 12:55:38 +00:00
parent ff327ba2d7
commit e1f362ba49

View File

@ -45,7 +45,7 @@ GLIB_AVAILABLE_IN_2_40
GSubprocess * g_subprocess_launcher_spawn (GSubprocessLauncher *self, GSubprocess * g_subprocess_launcher_spawn (GSubprocessLauncher *self,
GError **error, GError **error,
const gchar *argv0, const gchar *argv0,
...); ...) G_GNUC_NULL_TERMINATED;
GLIB_AVAILABLE_IN_2_40 GLIB_AVAILABLE_IN_2_40
GSubprocess * g_subprocess_launcher_spawnv (GSubprocessLauncher *self, GSubprocess * g_subprocess_launcher_spawnv (GSubprocessLauncher *self,