comparison src/eval.c @ 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 111f877e63d9
children 376b520312d6
comparison
equal deleted inserted replaced
21076:5897e4fcbf3b 21077:794bf2be08be
732 732
733 if (skip) 733 if (skip)
734 { 734 {
735 // When skipping just find the end of the name. 735 // When skipping just find the end of the name.
736 lp->ll_name = name; 736 lp->ll_name = name;
737 return find_name_end(name, NULL, NULL, FNE_INCL_BR | fne_flags); 737 lp->ll_name_end = find_name_end(name, NULL, NULL,
738 FNE_INCL_BR | fne_flags);
739 return lp->ll_name_end;
738 } 740 }
739 741
740 // Find the end of the name. 742 // Find the end of the name.
741 p = find_name_end(name, &expr_start, &expr_end, fne_flags); 743 p = find_name_end(name, &expr_start, &expr_end, fne_flags);
742 lp->ll_name_end = p; 744 lp->ll_name_end = p;