[gtk+] x11: Handle case where xsettings are NULL
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Handle case where xsettings are NULL
- Date: Tue, 19 Feb 2013 18:56:12 +0000 (UTC)
commit de087165260ae2740e73cc3d24f9f18b972d8013
Author: Benjamin Otte <otte redhat com>
Date: Tue Feb 19 19:55:02 2013 +0100
x11: Handle case where xsettings are NULL
gdk/x11/gdkscreen-x11.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 0a9b3cf..7147892 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]