0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.2256

Problem:    Coverity complains about null pointer check.
Solution:   Remove wrong and superfluous error check.
This commit is contained in:
Bram Moolenaar 2016-08-26 16:29:47 +02:00
parent ec42059b78
commit db249f26ed
2 changed files with 5 additions and 6 deletions

View File

@ -4941,12 +4941,9 @@ get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
}
*name = NUL;
if (p == NUL)
{
EMSG2(_("E114: Missing quote: %s"), *arg);
return FAIL;
}
*arg = p + 1;
if (*p != NUL) /* just in case */
++p;
*arg = p;
return OK;
}

View File

@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2256,
/**/
2255,
/**/