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
This commit is contained in:
Thomas James Alexander Thurman 2008-11-22 19:34:03 +00:00
parent 38cd6a6c1f
commit c2abbce2ed
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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> 2008-11-22 Thomas Thurman <tthurman@gnome.org>
* src/core/prefs.c: fix two places where there was a warning * src/core/prefs.c: fix two places where there was a warning

View File

@ -1875,8 +1875,10 @@ init_bindings (void)
int which = 0; int which = 0;
while (key_string_bindings[i].name) while (key_string_bindings[i].name)
{ {
if (key_string_bindings[i].keybinding == NULL) if (key_string_bindings[i].keybinding == NULL) {
++i;
continue; continue;
}
while (strcmp(key_bindings[which].name, while (strcmp(key_bindings[which].name,
key_string_bindings[i].name) != 0) key_string_bindings[i].name) != 0)