mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
eval: Fix PVS/V560: unneded check for name_len
It is unsigned, zero length would already cause early return and length 1 is checked earlier in the same condition.
This commit is contained in:
@@ -18728,7 +18728,7 @@ static hashtab_T *find_var_ht_dict(const char *name, const size_t name_len,
|
||||
if (name_len == 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (name_len == 1 || (name_len >= 2 && name[1] != ':')) {
|
||||
if (name_len == 1 || name[1] != ':') {
|
||||
// name has implicit scope
|
||||
if (name[0] == ':' || name[0] == AUTOLOAD_CHAR) {
|
||||
// The name must not start with a colon or #.
|
||||
|
||||
Reference in New Issue
Block a user