summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-12-19 16:14:03 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-12-19 16:14:03 -0600
commitee62652e2d8d0ce23693d879b8feadb095ffb31a (patch)
tree76377da5a1e9b245dfdbed6dc3e6e4c03ce5b21d
parentdba037d42263288d80a8c98a8b010d7f6721305a (diff)
parentfc86e58a5afa8aeb14955500d82e8c57dbf5695b (diff)
Merge "chan_console: Use correct parameter for 'set active'" into 13
-rw-r--r--channels/chan_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c
index 02d68870b..d7a72138d 100644
--- a/channels/chan_console.c
+++ b/channels/chan_console.c
@@ -1235,7 +1235,7 @@ static char *cli_console_active(struct ast_cli_entry *e, int cmd, struct ast_cli
return CLI_SUCCESS;
}
- if (!(pvt = find_pvt(a->argv[e->args - 1]))) {
+ if (!(pvt = find_pvt(a->argv[e->args]))) {
ast_cli(a->fd, "Could not find a device called '%s'.\n", a->argv[e->args]);
return CLI_FAILURE;
}