application: Really allow NULL application-id

While the docs were adjusted to claim that NULL application-id is allowed,
the code actually segfaulted on it.
This commit is contained in:
Christian Persch 2012-06-12 16:13:06 +02:00
parent 099dff1085
commit 75331c0ac2

View File

@ -789,7 +789,7 @@ GtkApplication *
gtk_application_new (const gchar *application_id,
GApplicationFlags flags)
{
g_return_val_if_fail (g_application_id_is_valid (application_id), NULL);
g_return_val_if_fail (application_id == NULL || g_application_id_is_valid (application_id), NULL);
g_type_init ();