summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-21 22:06:02 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-21 22:06:02 +0200
commit3f9a1ff141412e9e85f7dff47d02946cb9be9228 (patch)
tree4af2e9ce0e9575ccd166552ff441f77508c3ea90 /src/ex_cmds2.c
parent740c433c5909e3118dc4a7c42028f8a8b78a353b (diff)
downloadvim-git-3f9a1ff141412e9e85f7dff47d02946cb9be9228.tar.gz
patch 8.0.0983: unnecessary check for NULL pointerv8.0.0983
Problem: Unnecessary check for NULL pointer. Solution: Remove the NULL check in dialog_changed(), it already happens in dialog_msg(). (Ken Takata)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 8ca11f066..3682e797a 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -1981,9 +1981,7 @@ dialog_changed(
buf_T *buf2;
exarg_T ea;
- dialog_msg(buff, _("Save changes to \"%s\"?"),
- (buf->b_fname != NULL) ?
- buf->b_fname : (char_u *)_("Untitled"));
+ dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname);
if (checkall)
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
else