mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 01:04:06 +01:00
wp->tty is a char [] not a char * so it can't be NULL. From Thomas Adam.
This commit is contained in:
parent
a412dd616f
commit
bbc0898060
1
format.c
1
format.c
@ -872,7 +872,6 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
|
||||
format_add(ft, "pane_synchronized", "%d",
|
||||
!!options_get_number(&wp->window->options, "synchronize-panes"));
|
||||
|
||||
if (wp->tty != NULL)
|
||||
format_add(ft, "pane_tty", "%s", wp->tty);
|
||||
format_add(ft, "pane_pid", "%ld", (long) wp->pid);
|
||||
if ((cmd = cmd_stringify_argv(wp->argc, wp->argv)) != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user