mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 7.4.2083
Problem: Coverity complains about not restoring a value. Solution: Restore the value, although it's not really needed. Change return to jump to cleanup, might leak memory.
This commit is contained in:
@@ -199,14 +199,17 @@ get_function_args(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (newargs != NULL && ga_grow(newargs, 1) == FAIL)
|
if (newargs != NULL && ga_grow(newargs, 1) == FAIL)
|
||||||
return FAIL;
|
goto err_ret;
|
||||||
if (newargs != NULL)
|
if (newargs != NULL)
|
||||||
{
|
{
|
||||||
c = *p;
|
c = *p;
|
||||||
*p = NUL;
|
*p = NUL;
|
||||||
arg = vim_strsave(arg);
|
arg = vim_strsave(arg);
|
||||||
if (arg == NULL)
|
if (arg == NULL)
|
||||||
|
{
|
||||||
|
*p = c;
|
||||||
goto err_ret;
|
goto err_ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for duplicate argument name. */
|
/* Check for duplicate argument name. */
|
||||||
for (i = 0; i < newargs->ga_len; ++i)
|
for (i = 0; i < newargs->ga_len; ++i)
|
||||||
|
@@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2083,
|
||||||
/**/
|
/**/
|
||||||
2082,
|
2082,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user