patch 8.2.1670: a couple of gcc compiler warnings
Problem: A couple of gcc compiler warnings.
Solution: Initialize local variables. (Dominique Pellé, closes #6944)
diff --git a/src/memline.c b/src/memline.c
index 1c594d4..54f8c19 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2634,7 +2634,7 @@
int n;
char_u *props;
int new_len = 0; // init for gcc
- char_u *new_line;
+ char_u *new_line = NULL;
textprop_T prop;
// Make two rounds:
diff --git a/src/option.c b/src/option.c
index 6ebc2bd..dbb086d 100644
--- a/src/option.c
+++ b/src/option.c
@@ -683,7 +683,7 @@
static char_u *
find_dup_item(char_u *origval, char_u *newval, long_u flags)
{
- int bs;
+ int bs = 0;
size_t newlen;
char_u *s;
diff --git a/src/version.c b/src/version.c
index 4f8b503..b819c6d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1670,
+/**/
1669,
/**/
1668,