gtk/main: Remove condition that always evaluates TRUE

This commit is contained in:
Alessandro Bono 2022-09-15 16:44:44 +02:00
parent b9b2ac2ce3
commit 5320acf589

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);
}