From: Hirohito Higashi Date: Tue, 4 Feb 2025 15:37:19 +0000 (+0100) Subject: patch 9.1.1075: Vim9: len variable not used in compile_load() X-Git-Tag: v9.1.1075^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7cb9f9280c675537a1536864d58e32adf35d344;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/version.c b/src/version.c index 545b6354d0..fe4e418107 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1075, /**/ 1074, /**/ diff --git a/src/vim9expr.c b/src/vim9expr.c index b76544869c..58ff395f9e 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -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;