Does this fix the warning instead?
Index: cmd-new-session.c
===================================================================
RCS file: /cvs/src/usr.bin/tmux/cmd-new-session.c,v
retrieving revision 1.117
diff -u -p -r1.117 cmd-new-session.c
--- cmd-new-session.c 26 Apr 2019 11:38:51 -0000 1.117
+++ cmd-new-session.c 15 May 2019 06:45:52 -0000
@@ -192,6 +192,8 @@ cmd_new_session_exec(struct cmd *self, s
if (strcmp(tmp, "-") == 0) {
if (c != NULL)
dsx = c->
tty.sx;
+ else
+ dsx = 80;
} else {
dsx = strtonum(tmp, 1, USHRT_MAX, &errstr);
if (errstr != NULL) {
@@ -205,6 +207,8 @@ cmd_new_session_exec(struct cmd *self, s
if (strcmp(tmp, "-") == 0) {
if (c != NULL)
dsy = c->
tty.sy;
+ else
+ dsy = 24;
} else {
dsy = strtonum(tmp, 1, USHRT_MAX, &errstr);
if (errstr != NULL) {
> --
> You received this message because you are subscribed to the Google Groups "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
tmux-users+...@googlegroups.com.
> To post to this group, send an email to
tmux-...@googlegroups.com.
> To view this discussion on the web, visit
https://groups.google.com/d/msgid/tmux-users/20190510212205.14486-1-thomas%40xteddy.org.
> For more options, visit
https://groups.google.com/d/optout.