Mercurial > vim
changeset 29834:b772932fc721 v9.0.0256
patch 9.0.0256: compiler warning for uninitialized variables
Commit: https://github.com/vim/vim/commit/5214b294615718cc3f0d2248b76e9970b9fe9d45
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 24 17:32:35 2022 +0100
patch 9.0.0256: compiler warning for uninitialized variables
Problem: Compiler warning for uninitialized variables.
Solution: Initilize the variables.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Aug 2022 18:45:03 +0200 |
parents | 0a846de13277 |
children | df33a30395b3 |
files | src/scriptfile.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1358,14 +1358,14 @@ do_source_ext( source_cookie_T cookie; char_u *p; char_u *fname_not_fixed = NULL; - char_u *fname_exp; + char_u *fname_exp = NULL; char_u *firstline = NULL; int retval = FAIL; sctx_T save_current_sctx; #ifdef FEAT_EVAL funccal_entry_T funccalp_entry; int save_debug_break_level = debug_break_level; - int sid; + int sid = -1; scriptitem_T *si = NULL; int save_estack_compiling = estack_compiling; ESTACK_CHECK_DECLARATION