]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.2120: un-used assignment in do_source_buffer_init v9.0.2120
authorChristian Brabandt <cb@256bit.org>
Sun, 19 Nov 2023 18:06:16 +0000 (19:06 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 21 Nov 2023 18:59:54 +0000 (19:59 +0100)
commit4e5c3cf07bfc904b2a558f1d08a7f8a9732ed7db
treec9331a298cd37f3be1b51a6dbf122146e6e707b7
parent6b36645f07773d2b27c6662cd80a6567e07f75a0
patch 9.0.2120: un-used assignment in do_source_buffer_init

Problem:  un-used assignment in do_source_buffer_init
Solution: Remove it

Coverity warns about assigning NULL to line in scriptfile.c:1408,
because right after that assignment, in the next iteration of the loop,
line will be overwritten by the next value from vim_strsave().

And in case this was the last iteration, the line variable is no longer
used until the function returns. So we can safely remove that assignment.

closes: #13547

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/scriptfile.c
src/version.c