mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.1090: may use NULL pointer when skipping over name
Problem: May use NULL pointer when skipping over name. Solution: Always set ll_name_end.
This commit is contained in:
@@ -734,7 +734,9 @@ get_lval(
|
||||
{
|
||||
// When skipping just find the end of the name.
|
||||
lp->ll_name = name;
|
||||
return find_name_end(name, NULL, NULL, FNE_INCL_BR | fne_flags);
|
||||
lp->ll_name_end = find_name_end(name, NULL, NULL,
|
||||
FNE_INCL_BR | fne_flags);
|
||||
return lp->ll_name_end;
|
||||
}
|
||||
|
||||
// Find the end of the name.
|
||||
|
Reference in New Issue
Block a user