mirror of
https://github.com/tmux/tmux.git
synced 2025-03-29 02:08:48 +00:00
Handle empty options correctly.
This commit is contained in:
parent
78ca1b0265
commit
41b31fe240
@ -427,6 +427,8 @@ options_match(const char *s, int *idx, int* ambiguous)
|
|||||||
size_t namelen;
|
size_t namelen;
|
||||||
|
|
||||||
name = options_parse(s, idx);
|
name = options_parse(s, idx);
|
||||||
|
if (name == NULL)
|
||||||
|
return (NULL);
|
||||||
namelen = strlen(name);
|
namelen = strlen(name);
|
||||||
|
|
||||||
if (*name == '@') {
|
if (*name == '@') {
|
||||||
|
Loading…
Reference in New Issue
Block a user