Merge branch 'wip/abono/gtk-main-remove-condition' into 'main'

gtk/main: Remove condition that always evaluates TRUE

See merge request GNOME/gtk!5031
This commit is contained in:
Matthias Clasen 2022-09-15 19:24:04 +00:00
commit 9a16269747

View File

@ -657,9 +657,9 @@ gtk_init (void)
{
if (!gtk_init_check ())
{
const char *display_name_arg = NULL;
if (display_name_arg == NULL)
display_name_arg = getenv ("DISPLAY");
const char *display_name_arg;
display_name_arg = getenv ("DISPLAY");
g_warning ("cannot open display: %s", display_name_arg ? display_name_arg : "");
exit (1);
}