diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-24 18:46:40 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-24 18:46:40 +0000 |
commit | c6dac5c3c96ecbc43abc3de16bdcb6569141c379 (patch) | |
tree | 7a03f8891186fa78c451c8201eeb7c26a744f108 /cmd.c | |
parent | 029599c02c23e5be84c21aabda1114ee0dc47c91 (diff) | |
download | rtmux-c6dac5c3c96ecbc43abc3de16bdcb6569141c379.tar.gz rtmux-c6dac5c3c96ecbc43abc3de16bdcb6569141c379.tar.bz2 rtmux-c6dac5c3c96ecbc43abc3de16bdcb6569141c379.zip |
cmd_find_index should return -2 on error.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -676,7 +676,7 @@ cmd_find_index(struct cmd_ctx *ctx, const char *arg, struct session **sp) */ if ((s = cmd_current_session(ctx)) == NULL) { ctx->error(ctx, "can't establish current session"); - return (-1); + return (-2); } /* A NULL argument means the current session and "no window" (-1). */ |