Code

command.c: put curly braces around a single large statement
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Tue, 22 Nov 2011 22:03:05 +0000 (23:03 +0100)
committerMax Kellermann <max@duempel.org>
Fri, 2 Dec 2011 11:08:34 +0000 (12:08 +0100)
src/command.c

index 68b8d1e09dcea819d9c27a2619672eb501d37a1e..67e0ad3b11a22a0181076fb0aa488dadf8d57403 100644 (file)
@@ -498,7 +498,7 @@ check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
                int j;
                command_t cmd;
 
-               for(j=0; j<MAX_COMMAND_KEYS; j++)
+               for(j=0; j<MAX_COMMAND_KEYS; j++) {
                        if (cp[i].keys[j] &&
                            (cmd = find_key_command(cp[i].keys[j],cp)) != cp[i].command) {
                                if (buf) {
@@ -519,6 +519,7 @@ check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
                                set_key_flags(cp, cmd, COMMAND_KEY_CONFLICT);
                                retval = -1;
                        }
+               }
                i++;
        }
        return retval;