[glib] gsubprocess: Add missing G_GNUC_NULL_TERMINATED attribute
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsubprocess: Add missing G_GNUC_NULL_TERMINATED attribute
- Date: Tue, 14 Mar 2017 13:43:12 +0000 (UTC)
commit e1f362ba49a7df54f9299883876b63d5e9f0916b
Author: Philip Withnall <withnall endlessm com>
Date: Tue Mar 14 12:55:38 2017 +0000
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
gio/gsubprocesslauncher.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsubprocesslauncher.h b/gio/gsubprocesslauncher.h
index ab4ad5e..68317c2 100644
--- a/gio/gsubprocesslauncher.h
+++ b/gio/gsubprocesslauncher.h
@@ -45,7 +45,7 @@ GLIB_AVAILABLE_IN_2_40
GSubprocess * g_subprocess_launcher_spawn (GSubprocessLauncher *self,
GError **error,
const gchar *argv0,
- ...);
+ ...) G_GNUC_NULL_TERMINATED;
GLIB_AVAILABLE_IN_2_40
GSubprocess * g_subprocess_launcher_spawnv (GSubprocessLauncher *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]