forked from AuroraMiddleware/gtk
gtk/main: Remove condition that always evaluates TRUE
This commit is contained in:
parent
b9b2ac2ce3
commit
5320acf589
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user