[gnome-control-center] region: Fix possible crasher with empty layout
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Fix possible crasher with empty layout
- Date: Wed, 7 Mar 2012 17:30:45 +0000 (UTC)
commit 57bba2631110359b8eb5c7eb558da6f18599a84e
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 7 18:27:25 2012 +0100
region: Fix possible crasher with empty layout
panels/region/gnome-region-panel-system.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-system.c b/panels/region/gnome-region-panel-system.c
index c043712..a02ef54 100644
--- a/panels/region/gnome-region-panel-system.c
+++ b/panels/region/gnome-region-panel-system.c
@@ -162,6 +162,9 @@ xkb_settings_changed (GSettings *settings,
split = g_strsplit_set (layouts[i], " \t", 2);
+ if (split == NULL || split[0] == NULL)
+ continue;
+
layout = split[0];
variant = split[1];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]