# HG changeset patch # User Bram Moolenaar # Date 1661359503 -7200 # Node ID b772932fc72126e22f94a27fe653446528143c98 # Parent 0a846de132779c86f528aa93c07ca9220dfccc72 patch 9.0.0256: compiler warning for uninitialized variables Commit: https://github.com/vim/vim/commit/5214b294615718cc3f0d2248b76e9970b9fe9d45 Author: Bram Moolenaar 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. diff --git a/src/scriptfile.c b/src/scriptfile.c --- 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -732,6 +732,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 256, +/**/ 255, /**/ 254,