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:
ZyX
2018-04-10 01:25:00 +03:00
parent 07b67f9eff
commit 4d1b3bf317

View File

@@ -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 #.