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/8110ecefb375
branches:  trunk
changeset: 330923:8110ecefb375
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 e1362b72fa9f -r 8110ecefb375 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