Mercurial > vim
comparison src/version.c @ 33808:1774c261d8b1 v9.0.2120
patch 9.0.2120: un-used assignment in do_source_buffer_init
Commit: https://github.com/vim/vim/commit/4e5c3cf07bfc904b2a558f1d08a7f8a9732ed7db
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Nov 19 19:06:16 2023 +0100
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 21 Nov 2023 20:15:09 +0100 |
parents | 354e92c641ba |
children | 06219b3bdaf3 |
comparison
equal
deleted
inserted
replaced
33807:5b981afc9840 | 33808:1774c261d8b1 |
---|---|
702 NULL | 702 NULL |
703 }; | 703 }; |
704 | 704 |
705 static int included_patches[] = | 705 static int included_patches[] = |
706 { /* Add new patch number below this line */ | 706 { /* Add new patch number below this line */ |
707 /**/ | |
708 2120, | |
707 /**/ | 709 /**/ |
708 2119, | 710 2119, |
709 /**/ | 711 /**/ |
710 2118, | 712 2118, |
711 /**/ | 713 /**/ |