mirror of
https://github.com/tmux/tmux.git
synced 2026-07-22 00:41:19 +00:00
Fixed two null dereferences.
This commit is contained in:
@@ -91,7 +91,7 @@ cmd_select_layout_exec(struct cmd *self, struct cmdq_item *item)
|
||||
if (args_has(args, 'p'))
|
||||
previous = 1;
|
||||
|
||||
if (c->flags & CLIENT_CONTROL &&
|
||||
if (c != NULL && c->flags & CLIENT_CONTROL &&
|
||||
~c->flags & CLIENT_CONTROL_NEWLAYOUTS)
|
||||
flags |= LAYOUT_CUSTOM_OLD_FORMAT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user