summaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/core/prefs.c4
1 files changed, 3 insertions, 1 deletions
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)