summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-24 17:32:35 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-24 17:32:35 +0100
commit5214b294615718cc3f0d2248b76e9970b9fe9d45 (patch)
tree70dd1b12320a10a9fcd864406c7002c5e7ee5b18
parent0af2ecfe4474be3a83d75b1d636bfdf6b27bbc92 (diff)
downloadvim-git-5214b294615718cc3f0d2248b76e9970b9fe9d45.tar.gz
patch 9.0.0256: compiler warning for uninitialized variablesv9.0.0256
Problem: Compiler warning for uninitialized variables. Solution: Initilize the variables.
-rw-r--r--src/scriptfile.c4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c
index bb307561d..1382f29d7 100644
--- 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
index 17ea79eb0..ec2f360f1 100644
--- 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,