diff options
author | Max Kellermann <max@duempel.org> | 2008-10-22 21:40:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-22 21:40:58 +0200 |
commit | d11ee6580c2e61b67983e5378be62dde63cae25c (patch) | |
tree | 2a9a3480525e69a396446079a8d4d17b5ba0611f | |
parent | 51a6ee88f716377c20d5b4bfe8e95f1a87142ae2 (diff) | |
download | mpd-d11ee6580c2e61b67983e5378be62dde63cae25c.tar.gz mpd-d11ee6580c2e61b67983e5378be62dde63cae25c.tar.xz mpd-d11ee6580c2e61b67983e5378be62dde63cae25c.zip |
command: replaced "goto" with "break"
http://xkcd.com/292/
-rw-r--r-- | src/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |