command: replaced "goto" with "break"

http://xkcd.com/292/
This commit is contained in:
Max Kellermann 2008-10-22 21:40:58 +02:00
parent 51a6ee88f7
commit d11ee6580c

View File

@ -1458,13 +1458,13 @@ command_process_list(struct client *client,
ret = command_process(client, cur->data); ret = command_process(client, cur->data);
DEBUG("command_process_list: command returned %i\n", ret); DEBUG("command_process_list: command returned %i\n", ret);
if (ret != 0 || client_is_expired(client)) if (ret != 0 || client_is_expired(client))
goto out; break;
else if (list_ok) else if (list_ok)
client_puts(client, "list_OK\n"); client_puts(client, "list_OK\n");
command_list_num++; command_list_num++;
cur = cur->next; cur = cur->next;
} }
out:
command_list_num = 0; command_list_num = 0;
return ret; return ret;
} }