Skip to content

Commit 3f9a1ff

Browse files
committed
patch 8.0.0983: unnecessary check for NULL pointer
Problem: Unnecessary check for NULL pointer. Solution: Remove the NULL check in dialog_changed(), it already happens in dialog_msg(). (Ken Takata)
1 parent 740c433 commit 3f9a1ff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ex_cmds2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,9 +1981,7 @@ dialog_changed(
19811981
buf_T *buf2;
19821982
exarg_T ea;
19831983

1984-
dialog_msg(buff, _("Save changes to \"%s\"?"),
1985-
(buf->b_fname != NULL) ?
1986-
buf->b_fname : (char_u *)_("Untitled"));
1984+
dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname);
19871985
if (checkall)
19881986
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
19891987
else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
983,
772774
/**/
773775
982,
774776
/**/

0 commit comments

Comments
 (0)