]> granicus.if.org Git - vim/commit
patch 8.1.0470: pointer ownership around fname_expand() is unclear v8.1.0470
authorBram Moolenaar <Bram@vim.org>
Thu, 11 Oct 2018 17:27:47 +0000 (19:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 11 Oct 2018 17:27:47 +0000 (19:27 +0200)
commit3d6014f0336d9a64c01a7518fe45fde0a925fa20
tree7961f41f09ee54c2c240abac007ab9779709bb13
parent108e7b422b7b59153dd5af1fb75e83fa36ff3db4
patch 8.1.0470: pointer ownership around fname_expand() is unclear

Problem:    Pointer ownership around fname_expand() is unclear.
Solution:   Allow b_ffname and b_sfname to point to the same allocated memory,
            only free one.  Update comments.
src/buffer.c
src/ex_cmds.c
src/fileio.c
src/structs.h
src/version.c