mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Handle empty options correctly.
This commit is contained in:
@ -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 == '@') {
|
||||||
|
Reference in New Issue
Block a user