diff options
author | Christian Persch <chpe@gnome.org> | 2012-06-12 16:13:06 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2012-06-12 16:15:12 +0200 |
commit | 75331c0ac289a065d66580bf52502c41b8af9cc7 (patch) | |
tree | d6a55a2878e4aea5c38bee1fd180a9e6001c977a | |
parent | 099dff1085e76e6e1aca9b986c0e11f6984d270b (diff) | |
download | gtk+-75331c0ac289a065d66580bf52502c41b8af9cc7.tar.gz |
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.
-rw-r--r-- | gtk/gtkapplication.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index c46d4562d4..2b87b9c45a 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -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 (); |