![]() ![]() | ![]() |
version 1.105, 2018/10/28 15:34:27 | version 1.106, 2019/02/16 19:04:34 | ||
---|---|---|---|
|
|
||
static struct tty_key * | static struct tty_key * | ||
tty_keys_find1(struct tty_key *tk, const char *buf, size_t len, size_t *size) | 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 the node is NULL, this is the end of the tree. No match. */ | ||
if (tk == NULL) | if (tk == NULL) | ||
return (NULL); | return (NULL); |