Commit d11ee658 authored by Max Kellermann's avatar Max Kellermann

command: replaced "goto" with "break"

parent 51a6ee88
...@@ -1458,13 +1458,13 @@ command_process_list(struct client *client, ...@@ -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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment