diff --git a/lib/menu.c b/lib/menu.c index f451352..6db298d 100644 --- a/lib/menu.c +++ b/lib/menu.c @@ -51,7 +51,7 @@ bool menu_handle_command(const char* line, const struct menu_command_t* command_ bool command_found = false; // remember if we found the corresponding command for (size_t i = 0; i < command_list_length; i++) { // go through available command list struct menu_command_t command = command_list[i]; // get current command - if ((1==strlen(word) && command.shortcut == word[0]) || 0 == strcmp(word, command.name)) { // check if shortcut or name match + if ((1 == strlen(word) && command.shortcut == word[0]) || 0 == strcmp(word, command.name)) { // check if shortcut or name match command_found = true; // remember we found the command if (command.command_handler) { // ensure there is an command handler if (MENU_ARGUMENT_NONE == command.argument) { // check if argument can be passed