forked from aniani/vim
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)
This commit is contained in:
@@ -1981,9 +1981,7 @@ dialog_changed(
|
|||||||
buf_T *buf2;
|
buf_T *buf2;
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
|
||||||
dialog_msg(buff, _("Save changes to \"%s\"?"),
|
dialog_msg(buff, _("Save changes to \"%s\"?"), buf->b_fname);
|
||||||
(buf->b_fname != NULL) ?
|
|
||||||
buf->b_fname : (char_u *)_("Untitled"));
|
|
||||||
if (checkall)
|
if (checkall)
|
||||||
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
|
ret = vim_dialog_yesnoallcancel(VIM_QUESTION, NULL, buff, 1);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
983,
|
||||||
/**/
|
/**/
|
||||||
982,
|
982,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user