changeset 21077:794bf2be08be v8.2.1090

patch 8.2.1090: may use NULL pointer when skipping over name Commit: https://github.com/vim/vim/commit/9b5384b97e832958573ffdcd3c1e230635b434e4 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 29 22:31:36 2020 +0200 patch 8.2.1090: may use NULL pointer when skipping over name Problem: May use NULL pointer when skipping over name. Solution: Always set ll_name_end.
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jun 2020 22:45:07 +0200
parents 5897e4fcbf3b
children 5ec0c522a05c
files src/eval.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -734,7 +734,9 @@ get_lval(
     {
 	// When skipping just find the end of the name.
 	lp->ll_name = name;
-	return find_name_end(name, NULL, NULL, FNE_INCL_BR | fne_flags);
+	lp->ll_name_end = find_name_end(name, NULL, NULL,
+						      FNE_INCL_BR | fne_flags);
+	return lp->ll_name_end;
     }
 
     // Find the end of the name.
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1090,
+/**/
     1089,
 /**/
     1088,