mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 18:07:54 +02:00
Deal gracefully with NULL log domains
This commit is contained in:
@@ -1190,7 +1190,7 @@ g_log_default_handler (const gchar *log_domain,
|
||||
domains = g_getenv ("G_MESSAGES_DEBUG");
|
||||
if (((log_level & INFO_LEVELS) == 0) ||
|
||||
domains == NULL ||
|
||||
(strcmp (domains, "all") != 0 && !strstr (domains, log_domain)))
|
||||
(strcmp (domains, "all") != 0 && (!log_domain || !strstr (domains, log_domain))))
|
||||
return;
|
||||
|
||||
emit:
|
||||
|
Reference in New Issue
Block a user