From d11ee6580c2e61b67983e5378be62dde63cae25c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Oct 2008 21:40:58 +0200 Subject: command: replaced "goto" with "break" http://xkcd.com/292/ --- src/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/command.c b/src/command.c index fa7aefce7..acaeea986 100644 --- a/src/command.c +++ b/src/command.c @@ -1458,13 +1458,13 @@ command_process_list(struct client *client, ret = command_process(client, cur->data); DEBUG("command_process_list: command returned %i\n", ret); if (ret != 0 || client_is_expired(client)) - goto out; + break; else if (list_ok) client_puts(client, "list_OK\n"); command_list_num++; cur = cur->next; } -out: + command_list_num = 0; return ret; } -- cgit v1.2.3