Merge branch 'g_get_prgname-annotations' into 'master'

gutils: Add (nullable) annotation to g_get_prgname()

See merge request GNOME/glib!762
This commit is contained in:
Philip Withnall 2019-04-03 12:32:42 +00:00
commit 80988146df

View File

@ -1037,7 +1037,8 @@ static gchar *g_prgname = NULL;
* #GtkApplication::startup handler. The program name is found by * #GtkApplication::startup handler. The program name is found by
* taking the last component of @argv[0]. * 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. * to GLib and must not be modified or freed.
*/ */
const gchar* const gchar*