diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-02-16 20:02:36 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-02-16 20:02:36 +0000 |
commit | d5c837904b3201271826c7377781a73421db09fb (patch) | |
tree | 2ea0ac2962afbb597204b1ce958508cf7f3c1eff | |
parent | fa8294436c3acf64899e4af5fc46e0f8f5b02c40 (diff) | |
parent | fa33603dc1eca5600aa5c6e0d2f4aa2291a75398 (diff) | |
download | rtmux-d5c837904b3201271826c7377781a73421db09fb.tar.gz rtmux-d5c837904b3201271826c7377781a73421db09fb.tar.bz2 rtmux-d5c837904b3201271826c7377781a73421db09fb.zip |
Merge branch 'obsd-master'
-rw-r--r-- | tty-keys.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -464,6 +464,10 @@ tty_keys_find(struct tty *tty, const char *buf, size_t len, size_t *size) static struct tty_key * tty_keys_find1(struct tty_key *tk, const char *buf, size_t len, size_t *size) { + /* If no data, no match. */ + if (len == 0) + return (NULL); + /* If the node is NULL, this is the end of the tree. No match. */ if (tk == NULL) return (NULL); |