Skip to content

Commit db249f2

Browse files
committed
patch 7.4.2256
Problem: Coverity complains about null pointer check. Solution: Remove wrong and superfluous error check.
1 parent ec42059 commit db249f2

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/eval.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4941,12 +4941,9 @@ get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
49414941

49424942
}
49434943
*name = NUL;
4944-
if (p == NUL)
4945-
{
4946-
EMSG2(_("E114: Missing quote: %s"), *arg);
4947-
return FAIL;
4948-
}
4949-
*arg = p + 1;
4944+
if (*p != NUL) /* just in case */
4945+
++p;
4946+
*arg = p;
49504947

49514948
return OK;
49524949
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2256,
766768
/**/
767769
2255,
768770
/**/

0 commit comments

Comments
 (0)