summaryrefslogtreecommitdiffstats
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-29 13:46:48 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-29 13:46:48 +0000
commit37199894317db555723e5ec99f88cbbb2a2a9670 (patch)
treee81456955a1c7d641744750e7c618b2055ffb39c /src/if_py_both.h
parent28a896f54d4b2f2b4bef8ef4144dde1673c9d6e7 (diff)
patch 9.0.0970: Coverity warns for uninitialized variablev9.0.0970
Problem: Coverity warns for uninitialized variable. Solution: Initialize "ren_ret".
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 0cde18d051..5589af678e 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -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)))