main: Kill a runtime warning

g_setenv doesn't take NULL for a value.
This commit is contained in:
Jasper St. Pierre 2014-02-18 20:30:36 -05:00
parent 00c8d3c897
commit 24c5290d7f

View File

@ -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