Module Name: src
Committed By: christos
Date: Fri Jul 25 09:06:17 UTC 2014
Modified Files:
src/external/bsd/tmux/dist: format.c
Log Message:
tty is an array and can't be null; thanks joerg@clang
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/tmux/dist/format.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/tmux/dist/format.c
diff -u src/external/bsd/tmux/dist/format.c:1.2 src/external/bsd/tmux/dist/format.c:1.3
--- src/external/bsd/tmux/dist/format.c:1.2 Thu Jul 24 11:09:24 2014
+++ src/external/bsd/tmux/dist/format.c Fri Jul 25 05:06:17 2014
@@ -557,8 +557,7 @@ format_window_pane(struct format_tree *f
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 (wp->cmd != NULL)
format_add(ft, "pane_start_command", "%s", wp->cmd);