patch 9.1.1075: Vim9: len variable not used in compile_load() Commit: https://github.com/vim/vim/commit/f7cb9f9280c675537a1536864d58e32adf35d344 Author: Hirohito Higashi <h.east....@gmail.com> Date: Tue Feb 4 16:37:19 2025 +0100
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....@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/version.c b/src/version.c index 545b6354d..fe4e41810 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 b76544869..58ff395f9 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; -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tfL6p-005vaz-2q%40256bit.org.