aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-07-31 01:41:59 -0400
committerJames McCoy <jamessan@jamessan.com>2020-07-31 17:59:33 -0400
commit3e3002b90c46fca8d8d5edebc021e56d95c5e645 (patch)
tree9ff1bc86a4bd1940fdbed12beffffd30dc9d22a3 /src/clint.py
parent9c4223215f71e1212462ada4e698be1b31437dd9 (diff)
downloadrneovim-3e3002b90c46fca8d8d5edebc021e56d95c5e645.tar.gz
rneovim-3e3002b90c46fca8d8d5edebc021e56d95c5e645.tar.bz2
rneovim-3e3002b90c46fca8d8d5edebc021e56d95c5e645.zip
fs: Ensure FileInfo struct is initialized
Zero out the caller's FileInfo in all the functions which populate the struct. The contents are considered private, so we need to ensure it's initialized. If the stat call fails, the buffer we get back from libuv may not have any valid data in it, so don't copy it into the caller's FileInfo. This was happening, expectedly, in functional/ex_cmds/write_spec.lua's "write errors out correctly", which caused it to fail in certain environments: test/functional/ex_cmds/write_spec.lua:130: Expected objects to be the same. Passed in: (string) 'Vim(write):E212: Can't open file for writing: not a directory' Expected: (string) 'Vim(write):E166: Can't open linked file for writing'
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions