From 37199894317db555723e5ec99f88cbbb2a2a9670 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 29 Nov 2022 13:46:48 +0000 Subject: patch 9.0.0970: Coverity warns for uninitialized variable Problem: Coverity warns for uninitialized variable. Solution: Initialize "ren_ret". --- src/if_py_both.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 0cde18d05..5589af678 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))) -- cgit v1.2.1