0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)))