aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 21:40:58 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 21:40:58 +0200
commitd11ee6580c2e61b67983e5378be62dde63cae25c (patch)
tree2a9a3480525e69a396446079a8d4d17b5ba0611f
parent51a6ee88f716377c20d5b4bfe8e95f1a87142ae2 (diff)
downloadmpd-d11ee6580c2e61b67983e5378be62dde63cae25c.tar.gz
mpd-d11ee6580c2e61b67983e5378be62dde63cae25c.tar.xz
mpd-d11ee6580c2e61b67983e5378be62dde63cae25c.zip
command: replaced "goto" with "break"
http://xkcd.com/292/
-rw-r--r--src/command.c4
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;
}