0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.1.1075: Vim9: len variable not used in compile_load()

Problem:  Vim9: length variable not used in compile_load()
Solution: use len instead of re-calculating the length
          (Hirohito Higashi)

closes: #16582

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-02-04 16:37:19 +01:00
committed by Christian Brabandt
parent 4a530a632b
commit f7cb9f9280
2 changed files with 3 additions and 1 deletions

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1075,
/**/
1074,
/**/

View File

@@ -796,7 +796,7 @@ compile_load(
int outer_loop_depth = -1;
int outer_loop_idx = -1;
name = vim_strnsave(*arg, end - *arg);
name = vim_strnsave(*arg, len);
if (name == NULL)
return FAIL;