]> granicus.if.org Git - vim/commitdiff
patch 8.0.0983: unnecessary check for NULL pointer v8.0.0983
authorBram Moolenaar <Bram@vim.org>
Mon, 21 Aug 2017 20:06:02 +0000 (22:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 21 Aug 2017 20:06:02 +0000 (22:06 +0200)
Problem:    Unnecessary check for NULL pointer.
Solution:   Remove the NULL check in dialog_changed(), it already happens in
            dialog_msg(). (Ken Takata)

src/ex_cmds2.c
src/version.c

index 8ca11f0663d45d2eefa46a53464d5a145be0ccb3..3682e797abe51c9c554dcb7ee52d6561c2e2a898 100644 (file)
@@ -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
index ad013a1e4af17634fcb48b32df9064ebad5a098e..a5cb078f0de5034a17b31a4fdefc1b68dc881a3b 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    983,
 /**/
     982,
 /**/