mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-15 01:50:06 +02:00
API: Constify g_get_prgname()
Found by Mike Gorse while via pygobject freeing the value. Should have been const according to original commit message.
This commit is contained in:
@@ -1071,7 +1071,7 @@ static gchar *g_prgname = NULL;
|
||||
* Returns: the name of the program. The returned string belongs
|
||||
* to GLib and must not be modified or freed.
|
||||
*/
|
||||
gchar*
|
||||
const gchar*
|
||||
g_get_prgname (void)
|
||||
{
|
||||
gchar* retval;
|
||||
|
Reference in New Issue
Block a user