mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
Window attachment, malloc debugging, fix a segfault with no sessions.
This commit is contained in:
14
server-msg.c
14
server-msg.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server-msg.c,v 1.22 2007-10-04 00:02:10 nicm Exp $ */
|
||||
/* $Id: server-msg.c,v 1.23 2007-10-04 11:52:03 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -118,6 +118,12 @@ server_msg_fn_command(struct hdr *hdr, struct client *c)
|
||||
log_debug("got command %u %s from client %d",
|
||||
cmd->entry->type, cmd->entry->name, c->fd);
|
||||
|
||||
ctx.error = server_msg_fn_command_error;
|
||||
ctx.print = server_msg_fn_command_print;
|
||||
|
||||
ctx.client = c;
|
||||
ctx.flags = 0;
|
||||
|
||||
if (cmd->entry->flags & CMD_NOSESSION)
|
||||
ctx.session = NULL;
|
||||
else {
|
||||
@ -129,12 +135,6 @@ server_msg_fn_command(struct hdr *hdr, struct client *c)
|
||||
}
|
||||
}
|
||||
|
||||
ctx.error = server_msg_fn_command_error;
|
||||
ctx.print = server_msg_fn_command_print;
|
||||
|
||||
ctx.client = c;
|
||||
ctx.flags = 0;
|
||||
|
||||
cmd_exec(cmd, &ctx);
|
||||
cmd_free(cmd);
|
||||
|
||||
|
Reference in New Issue
Block a user