mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Hide some warnings on newer GCC versions, GitHUb issue 2525.
This commit is contained in:
@ -1781,11 +1781,11 @@ server_client_check_exit(struct client *c)
|
||||
|
||||
switch (c->exit_type) {
|
||||
case CLIENT_EXIT_RETURN:
|
||||
if (c->exit_message != NULL) {
|
||||
if (c->exit_message != NULL)
|
||||
msize = strlen(c->exit_message) + 1;
|
||||
size = (sizeof c->retval) + msize;
|
||||
} else
|
||||
size = (sizeof c->retval);
|
||||
else
|
||||
msize = 0;
|
||||
size = (sizeof c->retval) + msize;
|
||||
data = xmalloc(size);
|
||||
memcpy(data, &c->retval, sizeof c->retval);
|
||||
if (c->exit_message != NULL)
|
||||
|
Reference in New Issue
Block a user