diff options
author | George Joseph <gjoseph@digium.com> | 2017-12-19 14:20:19 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-19 14:20:19 -0600 |
commit | 33213a5220eb3d9b17a76b936b069383717097a4 (patch) | |
tree | c050ca479fd2285bd60e86078bd23bd9d9d932b6 | |
parent | 88f7f4ebb641c22de9bab5e62323f6b536431104 (diff) | |
parent | c02e2564073c57d6b0e8a9b55a42ad7fba8675ab (diff) |
Merge "chan_console: Use correct parameter for 'set active'"
-rw-r--r-- | channels/chan_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c index a24a6c8af..4720a7576 100644 --- a/channels/chan_console.c +++ b/channels/chan_console.c @@ -1233,7 +1233,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; } |