1
0
forked from aniani/vim

patch 9.0.0970: Coverity warns for uninitialized variable

Problem:    Coverity warns for uninitialized variable.
Solution:   Initialize "ren_ret".
This commit is contained in:
Bram Moolenaar 2022-11-29 13:46:48 +00:00
parent 28a896f54d
commit 3719989431
2 changed files with 3 additions and 1 deletions

View File

@ -5274,7 +5274,7 @@ BufferSetattr(BufferObject *self, char *name, PyObject *valObject)
{
char_u *val;
aco_save_T aco;
int ren_ret;
int ren_ret = OK;
PyObject *todecref;
if (!(val = StringToChars(valObject, &todecref)))

View File

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