Mercurial > vim
comparison src/version.c @ 19671:897cb43a5c72 v8.2.0392
patch 8.2.0392: Coverity warns for using array index out of range
Commit: https://github.com/vim/vim/commit/56cb3378727783da2d246b9c5091784821666cfa
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Mar 16 20:04:41 2020 +0100
patch 8.2.0392: Coverity warns for using array index out of range
Problem: Coverity warns for using array index out of range.
Solution: Add extra "if" to avoid warning.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 Mar 2020 20:15:04 +0100 |
parents | c4062bd1ff4f |
children | 62ea983a9cb4 |
comparison
equal
deleted
inserted
replaced
19670:00e4b686ae2b | 19671:897cb43a5c72 |
---|---|
736 NULL | 736 NULL |
737 }; | 737 }; |
738 | 738 |
739 static int included_patches[] = | 739 static int included_patches[] = |
740 { /* Add new patch number below this line */ | 740 { /* Add new patch number below this line */ |
741 /**/ | |
742 392, | |
741 /**/ | 743 /**/ |
742 391, | 744 391, |
743 /**/ | 745 /**/ |
744 390, | 746 390, |
745 /**/ | 747 /**/ |