Mercurial > vim
comparison src/if_py_both.h @ 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 | d8e7d725a666 |
children | 307f68a41b03 |
comparison
equal
deleted
inserted
replaced
31272:ae2feb57b4df | 31273:25b9669741b2 |
---|---|
5272 | 5272 |
5273 if (strcmp(name, "name") == 0) | 5273 if (strcmp(name, "name") == 0) |
5274 { | 5274 { |
5275 char_u *val; | 5275 char_u *val; |
5276 aco_save_T aco; | 5276 aco_save_T aco; |
5277 int ren_ret; | 5277 int ren_ret = OK; |
5278 PyObject *todecref; | 5278 PyObject *todecref; |
5279 | 5279 |
5280 if (!(val = StringToChars(valObject, &todecref))) | 5280 if (!(val = StringToChars(valObject, &todecref))) |
5281 return -1; | 5281 return -1; |
5282 | 5282 |