diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-08-24 16:24:18 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-08-24 16:24:18 +0000 |
commit | 2e2e762743417ae7a0c32a4b40909ecdf3bb3560 (patch) | |
tree | 5bb1acfe9bc3008ee8197c6daa12e8e2ce88658e /cmd.c | |
parent | 266c13df18bb576bbda4a417c429a66a8929c6af (diff) | |
download | rtmux-2e2e762743417ae7a0c32a4b40909ecdf3bb3560.tar.gz rtmux-2e2e762743417ae7a0c32a4b40909ecdf3bb3560.tar.bz2 rtmux-2e2e762743417ae7a0c32a4b40909ecdf3bb3560.zip |
Sync OpenBSD patchset 289:
The cursession member in struct cmd_ctx is always either curclient->session or
NULL when curclient is also NULL, so just eliminate it.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: cmd.c,v 1.112 2009-08-09 17:48:55 tcunha Exp $ */ +/* $Id: cmd.c,v 1.113 2009-08-24 16:24:18 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -298,8 +298,8 @@ cmd_current_session(struct cmd_ctx *ctx) u_int i; int found; - if (ctx->cursession != NULL) - return (ctx->cursession); + if (ctx->curclient != NULL && ctx->curclient->session != NULL) + return (ctx->curclient->session); /* * If the name of the calling client's pty is know, build a list of the |