aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-03-30 14:50:12 +0800
committerGitHub <noreply@github.com>2026-03-30 14:50:12 +0800
commit80e5ccdd44ffb9ab09e130c4a535849febca8126 (patch)
treec84b98720c9f9946619f055563b7257d69b3b1c6 /runtime/lua/vim
parent92a667c07fe1790292dbb51b015b027e2057a9d4 (diff)
downloadrneovim-80e5ccdd44ffb9ab09e130c4a535849febca8126.tar.gz
rneovim-80e5ccdd44ffb9ab09e130c4a535849febca8126.tar.bz2
rneovim-80e5ccdd44ffb9ab09e130c4a535849febca8126.zip
refactor(buffer.c): fix coverity warning (#38589)
The NULL checks added in #35679 are no longer needed after #38473. _____________________________________________________________________________________________ *** CID 645258: (REVERSE_INULL) /src/nvim/buffer.c: 645 in close_buffer() 639 // Autocommands deleted the buffer. 640 emsg(_(e_auabort)); 641 return false; 642 } 643 buf->b_locked--; 644 buf->b_locked_split--; >>> CID 645258: (REVERSE_INULL) >>> Null-checking "win" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. 645 if (abort_if_last && win != NULL && one_window(win, NULL)) { 646 // Autocommands made this the only window. 647 emsg(_(e_auabort)); 648 return false; 649 } 650 } /src/nvim/buffer.c: 626 in close_buffer() 620 // Autocommands deleted the buffer. 621 emsg(_(e_auabort)); 622 return false; 623 } 624 buf->b_locked--; 625 buf->b_locked_split--; >>> CID 645258: (REVERSE_INULL) >>> Null-checking "win" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. 626 if (abort_if_last && win != NULL && one_window(win, NULL)) { 627 // Autocommands made this the only window. 628 emsg(_(e_auabort)); 629 return false; 630 } 631
Diffstat (limited to 'runtime/lua/vim')
0 files changed, 0 insertions, 0 deletions