aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/manpages/vim.1
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2015-03-24 19:46:39 +0100
committerJustin M. Keyes <justinkz@gmail.com>2015-04-05 20:27:46 -0400
commit8ee6f90bf810a3f0286513308e6cccff7d185666 (patch)
tree25b3368436f980deb1c0c9540df0b37eeb475cf6 /runtime/doc/manpages/vim.1
parentadb3ec2026c08f6c36f47d4d4348ca6368543a90 (diff)
downloadrneovim-8ee6f90bf810a3f0286513308e6cccff7d185666.tar.gz
rneovim-8ee6f90bf810a3f0286513308e6cccff7d185666.tar.bz2
rneovim-8ee6f90bf810a3f0286513308e6cccff7d185666.zip
Fix problem with coverity/105568 fix.
The original fix 3db0a40d691c103a26ef3df74528f12d89b0fa61 does not work for more than one loop iteration, because memory allocated in the previous iteration could be reused in the current iteration. Because expand_wildcards() never reads the variables *num_file and *file before the first assignment to them, the initial values for these variables can be anything. So instead of calling expand_shellcmd() with *file = "" we set *file = NULL. That should help coverity see, that not a array-typed value is freed. Helped-by: Eliseo Martínez <eliseomarmol@gmail.com>
Diffstat (limited to 'runtime/doc/manpages/vim.1')
0 files changed, 0 insertions, 0 deletions