Mercurial > vim
changeset 35883:8bb5c2fc4c38 v9.1.0653
patch 9.1.0653: Patch v9.1.0648 not completely right
Commit: https://github.com/vim/vim/commit/a0b5bc12850f1d87fa51fb7be42df0ea835ccf21
Author: Christian Brabandt <cb@256bit.org>
Date: Fri Aug 2 19:06:41 2024 +0200
patch 9.1.0653: Patch v9.1.0648 not completely right
Problem: Patch v9.1.0648 not completely right
(zeertzjq)
Solution: Remove always true condition
closes: #15415
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 02 Aug 2024 19:15:08 +0200 |
parents | 63f46f7b3908 |
children | defe601a6711 |
files | src/ex_cmds2.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -197,11 +197,9 @@ dialog_changed( // restore to empty when write failed if (empty_bufname) { - // prevent double free - if (buf->b_sfname != buf->b_ffname) - VIM_CLEAR(buf->b_sfname); buf->b_fname = NULL; VIM_CLEAR(buf->b_ffname); + VIM_CLEAR(buf->b_sfname); unchanged(buf, TRUE, FALSE); } }