GNOME Bugzilla – Bug 769087
gmessages: support NULL log domain
Last modified: 2016-07-22 15:35:25 UTC
It's possible that a project may not define the G_LOG_DOMAIN but still use g_log functions. In such cases, we now crash. This commit fixes that.
Created attachment 332005 [details] [review] gmessages: support NULL log domain
See also attachment 332003 [details] [review].
Attachment 332005 [details] pushed as f414cdd - gmessages: support NULL log domain
Review of attachment 332005 [details] [review]: ::: glib/gmessages.c @@ +1411,3 @@ + n_fields = 2; + + if (log_domain) log_domain needs to have the (nullable) annotation in the gtk-doc stanza as well. Pretty much everything that takes a log_domain in the existing API needs it.