main: Kill a runtime warning
g_setenv doesn't take NULL for a value.
This commit is contained in:
parent
00c8d3c897
commit
24c5290d7f
@ -343,7 +343,8 @@ meta_select_display (char *display_arg)
|
||||
else
|
||||
display_name = g_getenv ("MUTTER_DISPLAY");
|
||||
|
||||
g_setenv ("DISPLAY", display_name, TRUE);
|
||||
if (display_name)
|
||||
g_setenv ("DISPLAY", display_name, TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user