diff --git a/glib/gutils.c b/glib/gutils.c index 0ec4f66a1..58b87fe84 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -1232,7 +1232,9 @@ void g_set_application_name (const gchar *application_name) { gboolean already_set = FALSE; - + + g_return_if_fail (application_name); + G_LOCK (g_application_name); if (g_application_name) already_set = TRUE;