]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.1.0501: cppcheck warns for using array index before bounds check v8.1.0501
authorBram Moolenaar <Bram@vim.org>
Tue, 30 Oct 2018 21:15:55 +0000 (22:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 30 Oct 2018 21:15:55 +0000 (22:15 +0100)
commita9a8e04eab106c1d21381f79f8965fe50b94e235
tree4a1113804e104fe24a8a545ad10cedc539f584a5
parent833e5dab143034b7e43bc0be49b2eb3687ff9ab7
patch 8.1.0501: cppcheck warns for using array index before bounds check

Problem:    Cppcheck warns for using array index before bounds check.
Solution:   Swap the conditions. (Dominique Pelle)
src/memline.c
src/version.c