vim-patch:7.4.2256

Problem:    Coverity complains about null pointer check.
Solution:   Remove wrong and superfluous error check.

db249f26ed
This commit is contained in:
lonerover
2017-03-17 23:09:15 +08:00
parent a5481957c6
commit 26d7757ccb
2 changed files with 5 additions and 2 deletions

View File

@@ -4860,7 +4860,10 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
}
*name = NUL;
*arg = p + 1;
if (*p != NUL) { // just in case
p++;
}
*arg = p;
return OK;
}