mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Fix some warnings, GitHub issue 2382.
This commit is contained in:
8
server.c
8
server.c
@ -158,7 +158,7 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base,
|
||||
{
|
||||
int pair[2];
|
||||
sigset_t set, oldset;
|
||||
struct client *c;
|
||||
struct client *c = NULL;
|
||||
char *cause = NULL;
|
||||
|
||||
sigfillset(&set);
|
||||
@ -224,9 +224,11 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base,
|
||||
}
|
||||
|
||||
if (cause != NULL) {
|
||||
cmdq_append(c, cmdq_get_error(cause));
|
||||
if (c != NULL) {
|
||||
cmdq_append(c, cmdq_get_error(cause));
|
||||
c->flags |= CLIENT_EXIT;
|
||||
}
|
||||
free(cause);
|
||||
c->flags |= CLIENT_EXIT;
|
||||
}
|
||||
|
||||
server_add_accept(0);
|
||||
|
Reference in New Issue
Block a user