summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2008-11-22 19:34:03 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-11-22 19:34:03 +0000
commitc2abbce2edf734dad95aefe5e891d21ae4d10527 (patch)
treeb581f442ef555eb2f663b668a66ab506d278c527
parent38cd6a6c1fd9646e64d46d86d58d95621d8579ad (diff)
downloadmetacity-c2abbce2edf734dad95aefe5e891d21ae4d10527.tar.gz
fix stupid infinite loop when GConf is turned off.
* src/core/prefs.c: fix stupid infinite loop when GConf is turned off. svn path=/trunk/; revision=4024
-rw-r--r--ChangeLog4
-rw-r--r--src/core/prefs.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f713ff36..9a60bdcd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2008-11-22 Thomas Thurman <tthurman@gnome.org>
+ * src/core/prefs.c: fix stupid infinite loop when GConf is turned off.
+
+2008-11-22 Thomas Thurman <tthurman@gnome.org>
+
* src/core/prefs.c: fix two places where there was a warning
if GConf was turned off.
diff --git a/src/core/prefs.c b/src/core/prefs.c
index d0fb1c9c..ca928e9e 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -1875,8 +1875,10 @@ init_bindings (void)
int which = 0;
while (key_string_bindings[i].name)
{
- if (key_string_bindings[i].keybinding == NULL)
+ if (key_string_bindings[i].keybinding == NULL) {
+ ++i;
continue;
+ }
while (strcmp(key_bindings[which].name,
key_string_bindings[i].name) != 0)