mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
Deal gracefully with NULL log domains
This commit is contained in:
parent
877c0ad5b8
commit
1a08591c3a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user