summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2012-06-12 16:13:06 +0200
committerChristian Persch <chpe@gnome.org>2012-06-12 16:15:12 +0200
commit75331c0ac289a065d66580bf52502c41b8af9cc7 (patch)
treed6a55a2878e4aea5c38bee1fd180a9e6001c977a /gtk/gtkapplication.c
parent099dff1085e76e6e1aca9b986c0e11f6984d270b (diff)
downloadgtk+-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.
Diffstat (limited to 'gtk/gtkapplication.c')
-rw-r--r--gtk/gtkapplication.c2
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 ();