diff options
author | nicm <nicm> | 2021-08-20 18:59:53 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-20 18:59:53 +0000 |
commit | 90dd474c3ea8bf10bde6ee15eaaf9f3af3fb46f6 (patch) | |
tree | d7a208a65eaa5d17da7f7b764cfcf94ebfe01366 /cmd-refresh-client.c | |
parent | 6cbc83c6a64f272575aac1ee32cc0a0b1cb75c7b (diff) | |
download | rtmux-90dd474c3ea8bf10bde6ee15eaaf9f3af3fb46f6.tar.gz rtmux-90dd474c3ea8bf10bde6ee15eaaf9f3af3fb46f6.tar.bz2 rtmux-90dd474c3ea8bf10bde6ee15eaaf9f3af3fb46f6.zip |
Expose args_value struct (will be needed soon) and add some missing frees.
Diffstat (limited to 'cmd-refresh-client.c')
-rw-r--r-- | cmd-refresh-client.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c index e55ce907..2ade072f 100644 --- a/cmd-refresh-client.c +++ b/cmd-refresh-client.c @@ -184,20 +184,20 @@ cmd_refresh_client_exec(struct cmd *self, struct cmdq_item *item) if (args_has(args, 'A')) { if (~tc->flags & CLIENT_CONTROL) goto not_control_client; - value = args_first_value(args, 'A', &av); - while (value != NULL) { - cmd_refresh_client_update_offset(tc, value); - value = args_next_value(&av); + av = args_first_value(args, 'A'); + while (av != NULL) { + cmd_refresh_client_update_offset(tc, av->value); + av = args_next_value(&av); } return (CMD_RETURN_NORMAL); } if (args_has(args, 'B')) { if (~tc->flags & CLIENT_CONTROL) goto not_control_client; - value = args_first_value(args, 'B', &av); - while (value != NULL) { - cmd_refresh_client_update_subscription(tc, value); - value = args_next_value(&av); + av = args_first_value(args, 'B'); + while (av != NULL) { + cmd_refresh_client_update_subscription(tc, av); + av = args_next_value(av); } return (CMD_RETURN_NORMAL); } |