From c1c26448b101f1257e886d273378e23005c82d57 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 3 Apr 2019 12:31:44 +0100 Subject: [PATCH] gutils: Add (nullable) annotation to g_get_prgname() It can return NULL if no program name has been set yet (i.e. g_set_prgname() has not been called from somewhere). Signed-off-by: Philip Withnall --- glib/gutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib/gutils.c b/glib/gutils.c index 2e2d45785..b4ca1cc3f 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -1037,7 +1037,8 @@ static gchar *g_prgname = NULL; * #GtkApplication::startup handler. The program name is found by * taking the last component of @argv[0]. * - * Returns: the name of the program. The returned string belongs + * Returns: (nullable): the name of the program, or %NULL if it has not been + * set yet. The returned string belongs * to GLib and must not be modified or freed. */ const gchar*