mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
tui: Correct error in terminfo extension processing.
Using the right unibilium query function then revealed a latent NULL pointer problem.
This commit is contained in:
@@ -1136,7 +1136,7 @@ static int unibi_find_ext_str(unibi_term *ut, const char *name)
|
||||
size_t max = unibi_count_ext_str(ut);
|
||||
for (size_t i = 0; i < max; ++i) {
|
||||
const char * n = unibi_get_ext_str_name(ut, i);
|
||||
if (0 == strcmp(n, name)) {
|
||||
if (n && 0 == strcmp(n, name)) {
|
||||
return (int)i;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user