diff --git a/gio/gnotification.c b/gio/gnotification.c index 53c5c6ba9..2cf03cf04 100644 --- a/gio/gnotification.c +++ b/gio/gnotification.c @@ -714,6 +714,7 @@ g_notification_get_priority_nick (GNotification *notification) enum_class = g_type_class_ref (G_TYPE_NOTIFICATION_PRIORITY); value = g_enum_get_value (enum_class, g_notification_get_priority (notification)); + g_assert (value != NULL); nick = g_variant_new_string (value->value_nick); g_type_class_unref (enum_class);