diff options
author | nicm <nicm> | 2015-06-10 12:56:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-06-10 12:56:04 +0000 |
commit | bbc0898060a02515461cbd90d7af35bf91d9cb3d (patch) | |
tree | 605b9f3d5d1e1315ddd7cc0b12984b3350a75f2a /format.c | |
parent | a412dd616f07167610e3290e1cfc0e40eb9ec664 (diff) |
wp->tty is a char [] not a char * so it can't be NULL. From Thomas Adam.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -872,8 +872,7 @@ 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_tty", "%s", wp->tty); format_add(ft, "pane_pid", "%ld", (long) wp->pid); if ((cmd = cmd_stringify_argv(wp->argc, wp->argv)) != NULL) { format_add(ft, "pane_start_command", "%s", cmd); |