mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 10:33:09 +01:00
Clear msgdata where it is unavailable.
This commit is contained in:
parent
c7243b73cb
commit
f97db61439
3
cfg.c
3
cfg.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: cfg.c,v 1.1 2008-06-02 18:08:16 nicm Exp $ */
|
/* $Id: cfg.c,v 1.2 2008-06-02 18:23:37 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -121,6 +121,7 @@ load_cfg(const char *path, char **cause)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx.msgdata = NULL;
|
||||||
ctx.cursession = NULL;
|
ctx.cursession = NULL;
|
||||||
ctx.curclient = NULL;
|
ctx.curclient = NULL;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: key-bindings.c,v 1.26 2008-06-02 18:08:16 nicm Exp $ */
|
/* $Id: key-bindings.c,v 1.27 2008-06-02 18:23:37 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -188,6 +188,7 @@ key_bindings_dispatch(int key, struct client *c)
|
|||||||
if (i == ARRAY_LENGTH(&key_bindings))
|
if (i == ARRAY_LENGTH(&key_bindings))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
ctx.msgdata = NULL;
|
||||||
ctx.cursession = c->session;
|
ctx.cursession = c->session;
|
||||||
ctx.curclient = c;
|
ctx.curclient = c;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: server-msg.c,v 1.44 2008-06-02 18:08:17 nicm Exp $ */
|
/* $Id: server-msg.c,v 1.45 2008-06-02 18:23:37 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -122,9 +122,9 @@ server_msg_fn_command(struct hdr *hdr, struct client *c)
|
|||||||
ctx.error = server_msg_fn_command_error;
|
ctx.error = server_msg_fn_command_error;
|
||||||
ctx.print = server_msg_fn_command_print;
|
ctx.print = server_msg_fn_command_print;
|
||||||
|
|
||||||
|
ctx.msgdata = &data;
|
||||||
ctx.curclient = NULL;
|
ctx.curclient = NULL;
|
||||||
ctx.cursession = NULL;
|
ctx.cursession = NULL;
|
||||||
ctx.msgdata = &data;
|
|
||||||
|
|
||||||
ctx.cmdclient = c;
|
ctx.cmdclient = c;
|
||||||
ctx.flags = 0;
|
ctx.flags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user