Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/tmux/dist tty is an array and can't be null; th...



details:   https://anonhg.NetBSD.org/src/rev/5592b6d2f963
branches:  trunk
changeset: 797684:5592b6d2f963
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jul 25 09:06:17 2014 +0000

description:
tty is an array and can't be null; thanks joerg@clang

diffstat:

 external/bsd/tmux/dist/format.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 36066b170162 -r 5592b6d2f963 external/bsd/tmux/dist/format.c
--- a/external/bsd/tmux/dist/format.c   Fri Jul 25 08:47:42 2014 +0000
+++ b/external/bsd/tmux/dist/format.c   Fri Jul 25 09:06:17 2014 +0000
@@ -557,8 +557,7 @@
        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);



Home | Main Index | Thread Index | Old Index