diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-23 17:54:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-23 17:54:35 +0000 |
commit | 9edb4d4b85a8714162817f2ae428e654e6bf1f31 (patch) | |
tree | a5917da3ef572d505216ca865456dd85f1a4f9ec | |
parent | f07cedf04806b9d02d4754e37c7a81536ae30e33 (diff) | |
download | rtmux-9edb4d4b85a8714162817f2ae428e654e6bf1f31.tar.gz rtmux-9edb4d4b85a8714162817f2ae428e654e6bf1f31.tar.bz2 rtmux-9edb4d4b85a8714162817f2ae428e654e6bf1f31.zip |
Don't die on empty output strings, some terminfo entries have empty caps.
-rw-r--r-- | tty.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.41 2008-09-09 22:16:37 nicm Exp $ */ +/* $Id: tty.c,v 1.42 2008-09-23 17:54:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -394,6 +394,8 @@ tty_puts(struct tty *tty, const char *s) const char *t; t = tty_strip(s); + if (*t == '\0') + return; buffer_write(tty->out, t, strlen(t)); if (tty->log_fd != -1) |