changeset 31273:25b9669741b2 v9.0.0970

patch 9.0.0970: Coverity warns for uninitialized variable Commit: https://github.com/vim/vim/commit/37199894317db555723e5ec99f88cbbb2a2a9670 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 29 13:46:48 2022 +0000 patch 9.0.0970: Coverity warns for uninitialized variable Problem: Coverity warns for uninitialized variable. Solution: Initialize "ren_ret".
author Bram Moolenaar <Bram@vim.org>
date Tue, 29 Nov 2022 15:00:05 +0100
parents ae2feb57b4df
children 7aed043572f5
files src/if_py_both.h src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -5274,7 +5274,7 @@ BufferSetattr(BufferObject *self, char *
     {
 	char_u		*val;
 	aco_save_T	aco;
-	int		ren_ret;
+	int		ren_ret = OK;
 	PyObject	*todecref;
 
 	if (!(val = StringToChars(valObject, &todecref)))
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    970,
+/**/
     969,
 /**/
     968,