diff options
author | James McCoy <jamessan@jamessan.com> | 2017-03-30 22:11:40 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-03-30 22:30:02 -0400 |
commit | 338da727cdb19a15a0b001707e8778e10977e65c (patch) | |
tree | 99c36cc7120c84abd413317887e06a96d0f41ac9 /src/clint.py | |
parent | 1222c82799b9a853c5adaf8761309b616e664c95 (diff) | |
download | rneovim-338da727cdb19a15a0b001707e8778e10977e65c.tar.gz rneovim-338da727cdb19a15a0b001707e8778e10977e65c.tar.bz2 rneovim-338da727cdb19a15a0b001707e8778e10977e65c.zip |
coverity/161216: Ensure buf is valid for lifetime of defstr
Depending on the type of argument for input()/inputdialog()'s {text}
argument, defstr may point to buf. Therefore it needs to be in scope
for the lifetime of defstr.
Also, use a different buffer for the handling of the 3rd argument to
input()/inputdialog(). Although the buffer defstr points to is used
immediately, it avoids potential mishaps if the code changes.
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions