aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-10-09 06:05:36 -0700
committerGitHub <noreply@github.com>2023-10-09 06:05:36 -0700
commit55be4a4e26eafd06704a465ce85cf9526115e0f1 (patch)
tree542a07593c52264b7defc2e41ede26272e991197 /runtime/lua/vim/_system.lua
parent307a7abf86c439177910d05003a81ea4a13d2650 (diff)
downloadrneovim-55be4a4e26eafd06704a465ce85cf9526115e0f1.tar.gz
rneovim-55be4a4e26eafd06704a465ce85cf9526115e0f1.tar.bz2
rneovim-55be4a4e26eafd06704a465ce85cf9526115e0f1.zip
fix(coverity): dead code #25562
*** CID 466056: Control flow issues (DEADCODE) /src/nvim/window.c: 6951 in file_name_in_line() 6945 // Search backward for first char of the file name. 6946 // Go one char back to ":" before "//", or to the drive letter before ":\" (even if ":" 6947 // is not in 'isfname'). 6948 while (ptr > line) { 6949 if ((len = (size_t)(utf_head_off(line, ptr - 1))) > 0) { 6950 ptr -= len + 1; >>> CID 466056: Control flow issues (DEADCODE) >>> Execution cannot reach the expression "path_has_drive_letter(ptr - 2)" inside this statement: "if (vim_isfilec((uint8_t)pt...". 6951 } else if (vim_isfilec((uint8_t)ptr[-1]) 6952 || (len >= 2 && path_has_drive_letter(ptr - 2)) 6953 || ((options & FNAME_HYP) && path_is_url(ptr - 1))) { 6954 ptr--; 6955 } else { 6956 break;
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions