Commit: patch 9.0.1869: Coverity warns about unitialized var

3 views
Skip to first unread message

Christian Brabandt

unread,
Sep 5, 2023, 1:45:10 AM9/5/23
to vim...@googlegroups.com
patch 9.0.1869: Coverity warns about unitialized var

Commit: https://github.com/vim/vim/commit/86eda0780590ea8cac49e2aa3bd50245329d3579
Author: Ernie Rael <err...@raelity.com>
Date: Tue Sep 5 07:33:48 2023 +0200

patch 9.0.1869: Coverity warns about unitialized var

Problem: Coverity warns about unitialized var
Solution: initialize it

closes: #13029

Signed-off-by: Christian Brabandt <c...@256bit.org>
Co-authored-by: Ernie Rael <err...@raelity.com>

diff --git a/src/eval.c b/src/eval.c
index 4e1dbdeea..ec8d3baf9 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1025,7 +1025,7 @@ get_lval(
int len;
hashtab_T *ht = NULL;
int quiet = flags & GLV_QUIET;
- int writing;
+ int writing = 0;
int vim9script = in_vim9script();

// Clear everything in "lp".
diff --git a/src/version.c b/src/version.c
index d986e7b6f..0010dd5cf 100644
--- a/src/version.c
+++ b/src/version.c
@@ -699,6 +699,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1869,
/**/
1868,
/**/
Reply all
Reply to author
Forward
0 new messages