x11: Handle case where xsettings are NULL

This commit is contained in:
Benjamin Otte 2013-02-19 19:55:02 +01:00
parent 0ed47e1bb7
commit de08716526

View File

@ -1318,6 +1318,8 @@ gdk_x11_screen_get_setting (GdkScreen *screen,
GdkX11Screen *x11_screen = GDK_X11_SCREEN (screen);
const GValue *setting;
if (x11_screen->xsettings == NULL)
goto out;
setting = g_hash_table_lookup (x11_screen->xsettings, name);
if (setting == NULL)
goto out;